Jordan form and simultaneous diagonalization
Let m be a block diagonal matrix diag(b1,…,bm). Let (pi) be the orthogonal projections such that bi=pimpi. If we compute the Jordan form of m using SageMath as follows:
sage: jf, q = m.jordan_form(transformation=True)
Question 1: Does SageMath computes the Jordan form of m by computing the Jordan form of each bi? (more precisely, pi commutes with π−1qπ, for some permutation matrix π?).
In fact, what we are really interested in here is the simultanenous diagonalization: let m, n be two simultaneously diagonalizable matrix. Make the following:
sage: jf1, q1 = m.jordan_form(transformation=True)
sage: nn= ~q1 * n * q1
sage: jf2, q2 = nn.jordan_form(transformation=True)
Question 2: Is it true that the change-of-basis matrix q=q1q2 both diagonalizes m and n?
A positive answer to Q1 should imply a positive answer to Q2.
If you know a better way to make simultaneous diagonalization, please let me know. More generally, we are also interested in simultaneous block-diagonalization, more precisely, if m and n does not commute, the ∗-algebra they generate is isomorphic to ⨁iMni(C) with at least one i such that ni>1, and we are interested in the block-diagonalization according to this decomposition.
More informations is available at https://ask.sagemath.org/question/657...