Skip to content

__trexc__

builtin · libnexusinterp/corefcn/trexc-proprietary.cc

: [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 that U2*T2*U2' equals U*T*U'.