naginterfaces.library.lapackeig.zgeesx¶
- naginterfaces.library.lapackeig.zgeesx(jobvs, sort, sense, a, select=None, data=None)[source]¶
zgeesx
computes the eigenvalues, the Schur form , and, optionally, the matrix of Schur vectors for an complex nonsymmetric matrix .For full information please refer to the NAG Library document for f08pp
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f08/f08ppf.html
- Parameters
- jobvsstr, length 1
If , Schur vectors are not computed.
If , Schur vectors are computed.
- sortstr, length 1
Specifies whether or not to order the eigenvalues on the diagonal of the Schur form.
Eigenvalues are not ordered.
Eigenvalues are ordered (see ).
- sensestr, length 1
Determines which reciprocal condition numbers are computed.
None are computed.
Computed for average of selected eigenvalues only.
Computed for selected right invariant subspace only.
Computed for both.
If , or , .
- acomplex, array-like, shape
The matrix .
- selectNone or callable retval = select(w, data=None), optional
Note: if this argument is None then a NAG-supplied facility will be used.
If , is used to select eigenvalues to sort to the top left of the Schur form.
An eigenvalue is selected if is .
- Parameters
- wcomplex
The real and imaginary parts of the eigenvalue.
- dataarbitrary, optional, modifiable in place
User-communication data for callback functions.
- Returns
- retvalbool
Must be if the eigenvalue is to be selected.
- dataarbitrary, optional
User-communication data for callback functions.
- Returns
- acomplex, ndarray, shape
is overwritten by its Schur form .
- sdimint
If , .
If , number of eigenvalues for which is .
- wcomplex, ndarray, shape
Contains the computed eigenvalues, in the same order that they appear on the diagonal of the output Schur form .
- vscomplex, ndarray, shape
If , contains the unitary matrix of Schur vectors.
If , is not referenced.
- rcondefloat
If or , contains the reciprocal condition number for the average of the selected eigenvalues.
If or , is not referenced.
- rcondvfloat
If or , contains the reciprocal condition number for the selected right invariant subspace.
If or , is not referenced.
- Raises
- NagValueError
- (errno )
On entry, error in parameter .
Constraint: or .
- (errno )
On entry, error in parameter .
Constraint: or .
- (errno )
On entry, error in parameter .
Constraint: , , or .
- (errno )
On entry, error in parameter .
Constraint: .
- (errno )
The algorithm failed to compute all the eigenvalues.
- Warns
- NagAlgorithmicWarning
- (errno )
The eigenvalues could not be reordered because some eigenvalues were too close to separate (the problem is very ill-conditioned).
- (errno )
After reordering, roundoff changed values of some complex eigenvalues so that leading eigenvalues in the Schur form no longer satisfy . This could also be caused by underflow due to scaling.
- Notes
The Schur factorization of is given by
where , the matrix of Schur vectors, is unitary and is the Schur form. A complex matrix is in Schur form if it is upper triangular.
Optionally,
zgeesx
also orders the eigenvalues on the diagonal of the Schur form so that selected eigenvalues are at the top left; computes a reciprocal condition number for the average of the selected eigenvalues (); and computes a reciprocal condition number for the right invariant subspace corresponding to the selected eigenvalues (). The leading columns of form an orthonormal basis for this invariant subspace.For further explanation of the reciprocal condition numbers and , see Section 4.8 of Anderson et al. (1999) (where these quantities are called and respectively).
- References
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
Golub, G H and Van Loan, C F, 1996, Matrix Computations, (3rd Edition), Johns Hopkins University Press, Baltimore