scipy.linalg.lapack.sgeev#

scipy.linalg.lapack.sgeev(a, compute_vl=1, compute_vr=1, lwork=..., overwrite_a=0) = <flapack function sgeev>#

Compute the eigenvalues and eigenvectors of a general matrix (LAPACK sgeev).

Parameters:
andarray

Square matrix of shape (n, n).

compute_vlint, optional

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

compute_vrint, optional

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

lworkint, optional

Size of the workspace. Default is 4 * n. Use geev_lwork for the optimal value.

overwrite_aint, optional

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

Returns:
wrndarray

Real parts of the eigenvalues.

windarray

Imaginary parts; a conjugate pair occupies two adjacent entries, and its eigenvectors occupy the matching pair of columns as real and imaginary parts.

vlndarray

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

vrndarray

Right eigenvectors, or a (1, n) placeholder when compute_vr is 0.

infoint

0 on success; if negative, the -info-th argument had an illegal value; if positive, the algorithm failed to converge.