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

bundles / scipy latest / scipy / linalg / _flapack / zggev

lapack_function

scipy.linalg._flapack:zggev

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

Signature

def zggev(a, b, compute_vl = 1, compute_vr = 1, lwork = Ellipsis, overwrite_a = 0, overwrite_b = 0)

Summary

Solve the generalized eigenproblem a @ v = (alpha / beta) * b @ v (LAPACK zggev).

Parameters

a : ndarray

Square matrix of shape (n, n).

b : ndarray

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

compute_vl : int, optional

If nonzero, left eigenvectors are computed. Default is 1.

compute_vr : int, optional

If nonzero, right eigenvectors are computed. Default is 1.

lwork : int, optional

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

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

alpha : ndarray

Numerators of the generalized eigenvalues alpha / beta.

beta : ndarray

Denominators; an eigenvalue is infinite where beta is zero.

vl : ndarray

Left eigenvectors, or a (1, n) placeholder when compute_vl is 0.

vr : ndarray

Right eigenvectors, or a (1, n) placeholder when compute_vr 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 algorithm failed to converge.

Aliases

  • scipy.linalg._flapack.zggev