# Questions tagged [matrix]

Questions on the manipulation of matrices in Mathematica.

2,994 questions
Filter by
Sorted by
Tagged with
30 views

### Lanczos method to tridagonalize a matrix

I want to tridagonalize a sparse matrix using the Lanczos algorithm. I am working with a very large sparse matrix and I need some speed. In the following for example ...
17 views

The code ...
53 views

78 views

### Implementing empty matrix?

Matlab is famous for having implementation of empty matrices. The Matlab tutorial says "As far as we know, the literature on the algebra of empty matrices is itself empty. We’re not sure we’ve ...
40 views

### JordanDecomposition not evaluating

When there are very small differences between entries in a diagonal matrix, sometimes JordanDecomposition does not evaluate and gives an error message: ...
71 views

### Performing matrix tensor product and getting a sum of its negative entries

I am given a $3 \times 3$ matrix $M$, which only has real entries. Is there an efficient way to do the following two operations with $M$? For a given input $n$, compute the $n$-fold tensor product \$M^...
72 views

### sum of symmetric matrix is not symmetric

Within the development of a Markov Chain Montecarlo algorithm, I need to do the Cholesky decomposition of a matrix. The matrix is the sum of two matrices m1=Transpose[a].a and m2=Transpose[b].b; A ...
43 views

### Data wrangling to create a matrix from lists

I have a super simple data wrangling question that I can't seem to figure out (I am new to Mathematica). Basically I'm not sure what function to use. I have two parameters, ...
29 views

### Using Maximize function with UnitaryMatrixQ constraint

Define a function ...
129 views

### How to implement Drazin inverse?

Wolfram site says it will be implemented in the future as DrazinInverse[m] function. But what to do now?
31 views

### Trajectory Design Matrix

I've been tasked with creating a small demonstration for educational purposes of the Morris Screening Method but am having trouble implementing the trajectory design matrix in Mathematica. It's a ...
100 views

### Taking a diagonal cut through a matrix

Lets say I have a gaussian data matrix, e.g. x=GaussianMatrix I would like to take a cut through this matrix at a 45 degree angle to get its intensity profile, ...