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

bundles / scipy latest / scipy / linalg / _flapack / zheevd

lapack_function

scipy.linalg._flapack:zheevd

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

Signature

def zheevd(a, compute_v = 1, lower = 0, lwork = Ellipsis, liwork = Ellipsis, lrwork = Ellipsis, overwrite_a = 0)

Summary

Compute the eigenvalues and optionally the eigenvectors of a Hermitian matrix by divide-and-conquer (LAPACK zheevd).

Parameters

a : ndarray

Hermitian matrix of shape (n, n).

compute_v : int, optional

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

lower : int, optional

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

lwork : int, optional

Default is 2 * n + n ** 2 with eigenvectors, n + 1 without.

liwork : int, optional

Default is 3 + 5 * n with eigenvectors, 1 without.

lrwork : int, optional

Size of the real workspace, which the real flavors do not have. Default is 1 + 5 * n + 2 * n ** 2 with eigenvectors, n without.

overwrite_a : int, optional

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

Returns

w : ndarray

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

v : ndarray

Orthonormal eigenvectors as columns when compute_v is nonzero.

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