This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / linalg / _flapack / zgges

lapack_function

scipy.linalg._flapack:zgges

source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so

Summary

Compute the generalized Schur factorization of a matrix pair (LAPACK zgges).

Parameters

zselect : callable

Generalized-eigenvalue selector, called as zselect(alpha, beta). Used only when sort_t is nonzero.

a : ndarray

Square matrix of shape (n, n).

b : ndarray

Square matrix of shape (n, n), the second member of the pair.

jobvsl : int, optional

If nonzero, the left Schur vectors are computed. Default is 1.

jobvsr : int, optional

If nonzero, the right Schur vectors are computed. Default is 1.

sort_t : int, optional

If nonzero, eigenvalues are sorted using the selector. Default is 0.

ldvsl : int, optional

Leading dimension of vsl. Default is n when jobvsl is nonzero, else 1.

ldvsr : int, optional

Leading dimension of vsr. Default is n when jobvsr is nonzero, else 1.

lwork : int, optional

Size of the workspace. Default is 2 * n. Use the value reported in work[0] for the optimal value.

zselect_extra_args : tuple, optional

Extra positional arguments appended to every selector call. Default is ().

overwrite_a : int, optional

If nonzero, a may be overwritten in place. Default is 0.

overwrite_b : int, optional

If nonzero, b may be overwritten in place. Default is 0.

Returns

a : ndarray

Generalized Schur form of a.

b : ndarray

Generalized Schur form of b.

sdim : int

Number of eigenvalues the selector accepted; 0 when sort_t is 0.

alpha : ndarray

Numerators of the generalized eigenvalues alpha / beta.

beta : ndarray

Denominators of the generalized eigenvalues.

vsl : ndarray

Left Schur vectors, or a placeholder when jobvsl is 0.

vsr : ndarray

Right Schur vectors, or a placeholder when jobvsr is 0.

work : ndarray

Workspace actually used; work[0] is the optimal lwork.

info : int

0 on success; if negative, the -info-th argument had an illegal value; if positive, the QZ algorithm failed or the selected block could not be reordered.

Aliases

  • scipy.linalg._flapack.zgges