__trexc__
- :
[U2, T2] =__trexc__(U, T, M)¶ Reorder the diagonal of a Schur factorization.
U and T are the Schur vectors and the (quasi-)triangular Schur factor, both N-by-N. M has two columns; for each row
[from, to], taken in order, the diagonal entry at position from is moved to position to and the entries in between shift over. The transformation is orthogonal (unitary), so thatU2*T2*U2'equalsU*T*U'.