naginterfaces.library.lapackeig.zgees

naginterfaces.library.lapackeig.zgees(jobvs, sort, a, select=None, data=None)[source]

zgees 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 f08pn

https://www.nag.com/numeric/nl/nagdoc_30/flhtml/f08/f08pnf.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 ).

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.

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: .

(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, zgees also orders the eigenvalues on the diagonal of the Schur form so that selected eigenvalues are at the top left. The leading columns of form an orthonormal basis for the invariant subspace corresponding to the selected eigenvalues.

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