f08ytf reorders the generalized complex
by
matrix pair
in generalized Schur form, so that the diagonal element of
with row index
is moved to row
, using a unitary equivalence transformation. That is,
and
are factorized as
where
are also in generalized Schur form.
The pair
are in generalized Schur form if
and
are upper triangular as returned, for example, by
f08xnf, or
f08xsf with
.
If
and
are the result of a generalized Schur factorization of a matrix pair
then, optionally, the matrices
and
can be updated as
and
.
Anderson E, Bai Z, Bischof C, Blackford S, Demmel J, Dongarra J J, Du Croz J J, Greenbaum A, Hammarling S, McKenney A and Sorensen D (1999)
LAPACK Users' Guide (3rd Edition) SIAM, Philadelphia
https://www.netlib.org/lapack/lug
The computed generalized Schur form is nearly the exact generalized Schur form for nearby matrices
and
, where
and
is the
machine precision. See Section 4.11 of
Anderson et al. (1999) for further details of error bounds for the generalized nonsymmetric eigenproblem.
The real analogue of this routine is
f08yff.
This example exchanges rows 4 and 1 of the matrix pair
, where
and