Questions tagged [matrix]
Questions on the manipulation of matrices in Mathematica.
3,653 questions
5
votes
0
answers
161
views
Incredible performance of Eigensystem
I realised that Mathematica's matrix diagonalization (on M4 Pro) is very fast:
...
9
votes
0
answers
92
views
Comparing Det[A] == 0 vs Det[A - C.B.C] == 0 for symbolic matrices with constraints
I have three matrices $a,b,c$ defined as
...
6
votes
2
answers
326
views
Fast/Easy way to decompose a block matrix?
I am solving a system of nonlinear PDE (1 time, 1 space). I spatially discretize them into vectors n+2 long (the extra 2 being the boundary points). This often leaves me with 2n x 2n Jacobian to ...
3
votes
2
answers
201
views
How can I check identities of matrix elements given some matrix relations?
For two $n\times n$ matrices $A$ and $B$ , say $n=4$, I wish to check whether some identities and relations are satisfied by their entries provided $AB=BA$.
I do not know what codes I ...
8
votes
2
answers
281
views
2
votes
1
answer
174
views
Implementing matrix multiplication via a set of rules
I am trying to find a nice way to perform multiplication of the matrices M1 and M2 for a set of arbitrary constants. The matrices P and Q satisfy a set of commutation relations that I have tried to ...
0
votes
1
answer
99
views
Is there something like `?SingularMatrixQ`?
How can I define a rule for singular matrices? Ido not want it to affect other matrices.
3
votes
1
answer
169
views
Fragmented Sectors In Spin Chain
I want to see Fragmented Hilbert space obtained in this paper https://arxiv.org/pdf/2512.14182 in Fig. 4(a). But I do not know how it is coming. This is the Hamiltonian and their result obtained for ...
1
vote
1
answer
108
views
How can we define a multiplet field (for example, the Higgs doublet) as a matrix in Mathematica?
I want to define a multiplet field with two components (two modes) and write an action for it in Mathematica
3
votes
1
answer
136
views
How to find a matrix in a ragged list?
I have been trying to efficiently process data scraped from websites. One issue is that the data I want is often in the form of a matrix embedded at some level in a ragged list. I have developed one ...
4
votes
3
answers
217
views
Finding real variable where a 2×2 complex matrix in Mathematica
I have a 2x2 complex matrix
...
1
vote
0
answers
72
views
Eigenvectors of GSE with right properties
I encountered a weird problem when trying to study a few properties of eigenvectors of matrices sampled from the Gaussian symplectic ensemble (GSE). I have encountered this while trying to understand ...
1
vote
3
answers
442
views
How to change the color of the individual squares on a chessboard?
The code I have written to create a chessboard is as follows:
...
5
votes
3
answers
480
views
How to define a matrix to be positive definite and symmetric?
I'm somewhat new to Mathematica and want to check symbolic solutions to small positive definite symmetric matrices (like 3x3 in size), which I think should in general yield a symbolic solution since ...
0
votes
1
answer
174
views
Is it possible to find eigenvectors of matrix $f(1)$ in the given code analytically in terms of the variable $y$?
I have this differential matrix equation f'[x] == {{2 x, y + 5 I}, {-3 I + 2 y, Sin[3 x] - 5 y}}.f[x] for f[x] with the initial ...