Reorder eigenvalues in QZ factorization
[
reorders the QZ factorization AAS
,BBS
,QS
,ZS
] = ordqz(AA
,BB
,Q
,Z
,select
)Q*A*Z = AA
and Q*B*Z =
BB
produced by [AA,BB,Q,Z] = qz(A,B)
and returns
the reordered matrix pair (AAS,BBS)
along with orthogonal
matrices (QS,ZS)
, such that QS*A*ZS = AAS
and
QS*B*ZS = BBS
.
In this reordering, the selected cluster of eigenvalues appears in the leading
(upper left) diagonal blocks of the quasitriangular pair (AAS,BBS)
. The leading columns
of ZS
span the corresponding invariant subspace. The logical
vector select
specifies the selected cluster as
e(select)
, where e = ordeig(AA,BB)
.
If AA
has complex conjugate pairs (nonzero elements on the
subdiagonal), then you should move the pair to the same cluster. Otherwise,
ordqz
acts to keep the pair together:
If select
is not the same for two eigenvalues in a
conjugate pair, then ordqz
treats both as
selected.
If clusters
is not the same for two eigenvalues in
a conjugate pair, then ordqz
treats both as part of
the cluster with larger index.