scipy.linalg.lapack.ssyev#

scipy.linalg.lapack.ssyev(a, compute_v=1, lower=0, lwork=..., overwrite_a=0) = <flapack function ssyev>#

Compute the eigenvalues and optionally the eigenvectors of a real symmetric matrix (LAPACK ssyev).

Parameters:
andarray

Symmetric matrix of shape (n, n).

compute_vint, optional

If nonzero, eigenvectors are computed as well as eigenvalues. Default is 1.

lowerint, optional

If nonzero, the lower triangle of a is referenced; otherwise the upper. Default is 0.

lworkint, optional

Size of the workspace. Default is max(3 * n - 1, 1). Use ssyev_lwork for the optimal value.

overwrite_aint, optional

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

Returns:
wndarray

Eigenvalues in ascending order, length n. Real for every flavor.

vndarray

Orthonormal eigenvectors as columns when compute_v is nonzero; otherwise the contents are not meaningful.

infoint

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