Skip to content

ordschur

builtin · libnexusinterp/corefcn/ordschur-proprietary.cc

: [UR, SR] = ordschur (U, S, select)

Reorder the eigenvalues of a Schur factorization.

U and S come from schur, so that A = U*S*U'. The result satisfies A = UR*SR*UR' with the diagonal of SR rearranged according to select, a vector with one entry per diagonal position.

select may be a logical or 0/1 vector, a cluster-number vector, or a keyword string: 'lhp' (left-half-plane, real part < 0), 'rhp' (right-half-plane, real part > 0), 'udi' or 'udo' (outside unit disk, |lambda| > 1). [] behaves like 'lhp'.