nag_zgges (f08xnc) computes the generalized eigenvalues, the generalized Schur form and, optionally, the left and/or right generalized Schur vectors for a pair of by complex nonsymmetric matrices .
The generalized Schur factorization for a pair of complex matrices
is given by
where
and
are unitary,
and
are upper triangular. The generalized eigenvalues,
, of
are computed from the diagonals of
and
and satisfy
where
is the corresponding generalized eigenvector.
is actually returned as the pair
such that
since
, or even both
and
can be zero. The columns of
and
are the left and right generalized Schur vectors of
.
Optionally, nag_zgges (f08xnc) can order the generalized eigenvalues on the diagonals of so that selected eigenvalues are at the top left. The leading columns of and then form an orthonormal basis for the corresponding eigenspaces, the deflating subspaces.
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
http://www.netlib.org/lapack/lug
- NE_ALLOC_FAIL
Dynamic memory allocation failed.
- NE_BAD_PARAM
On entry, argument had an illegal value.
- NE_ENUM_INT_2
On entry, , and .
Constraint: if , ;
otherwise .
On entry, , and .
Constraint: if , ;
otherwise .
- NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
On entry, and .
Constraint: .
On entry, and .
Constraint: .
- NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact
NAG for assistance.
- NE_ITERATION_QZ
The iteration did not converge and the matrix pair is not in the generalized Schur form.
The computed and should be correct for .
The
iteration failed with an unexpected error, please contact
NAG.
- NE_SCHUR_REORDER
The eigenvalues could not be reordered because some eigenvalues were too close to separate (the problem is very ill-conditioned).
- NE_SCHUR_REORDER_SELECT
After reordering, roundoff changed values of some complex eigenvalues so that leading eigenvalues in the generalized Schur form no longer satisfy . This could also be caused by underflow due to scaling.
The computed generalized Schur factorization satisfies
where
and
is the
machine precision. See Section 4.11 of
Anderson et al. (1999) for further details.
The real analogue of this function is
nag_dgges (f08xac).
This example finds the generalized Schur factorization of the matrix pair
, where
and