Questions tagged [linear-algebra]
Questions about Mathematica functionality related to manipulating vector spaces and linear mappings between such spaces. This includes determination of matrix properties, matrix transformations, decompositions, and factoring.
1,682 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
131
views
Mathematica running linear algebra unusually slow on the cluster
I’ve been running some Mathematica code on the HPC node and noticed that it’s running much slower than on my laptop — even for small calculations like multiplying two matrices. For example, something ...
1
vote
2
answers
85
views
How to compute the complement of a subspace within another subspace?
I have two subspaces $V_1,ドル $V_2$ of $\mathbb{R}^n$ each specified as the span of a given list L1, L2 of basis vectors, and I ...
4
votes
2
answers
127
views
Parameter search problem for satisfying an inequality
I am working with a 2ドル \times 2$ matrix
...
4
votes
1
answer
142
views
How to implement a 2x2 operator in Mathematica?
I am trying to write a Mathematica program to compute the following:
For a given Hermitian matrix $\rho,ドル the operator $L_\theta$ with respect to a parameter $\theta$ is defined as:
\begin{equation}
...
4
votes
3
answers
507
views
Plotting the surface gained by joining every point of a line to every point of another line in 3D space
How can I write code for displaying two lines in 3D space at random and connecting all points of line A with all points of line B and displaying the resulting surface in Mathematica (what would it's ...
0
votes
1
answer
89
views
DSolve throws overdetermined error for large (but simple) system of ODEs
I have the following example, which is a proxy for the more complex problem I am trying to solve.(Apologies that the LaTeX is explicit, for some reason it trips the code formatting error on ...
0
votes
1
answer
157
views
How to compute matrix LDU decomposition?
Use Mathematica to decompose a given matrix $Q$ as $LDU,ドル where $L,ドル $D$ is a triangular matrix, diagonal matrix, respectively, and $U$ is the transpose of $L$.
The built-in ...
5
votes
1
answer
237
views
5
votes
3
answers
448
views
Linear system of matrices
I don't know Mathematica very well, I have an equation involving matrices of the following form:
given two 5ドル\times5$ matrices $A,B$ where $B$ is nilpotent we want to find a matrix $X$ such that
...
5
votes
2
answers
236
views
Counting free variables in a system of linear equations
If we have a system of variables, say,
...
3
votes
3
answers
298
views
Finding one non-negative solution to a system of linear equations
I need to find one non-negative solution to the system of linear equations
...
0
votes
0
answers
143
views
Quantity dependent on choice of Eigenvectors of degenerate eigenvalues
This question uses the function sumFast (defined below as well) given : here.
Let us say we are given a matrix A and I want to ...
0
votes
1
answer
154
views
Solving enormous linear systems [closed]
On an assigment on numerical analysis, i'm asked to solve some linear systems of order 200x200. However, neither the function LinearSolve nor the LU decomposition run in a reasonable amount of time. ...
2
votes
0
answers
118
views
Legacy package: Making a linear map
I have downloaded a differential forms package from 1997. It can be found here. I am trying to understand how the code works. I am am having some difficulty, and am hoping that someone can help me out....
1
vote
4
answers
425
views
The shortest path between two points in R^3 is a straight line. How can I find the coefficients for the equation of the line?
This is the system of equations; the points in R^3 are {x1,y1,z1} and {x2,y2,z2} and the coefficients are ...