scipy.linalg.lapack.cheevd#
- scipy.linalg.lapack.cheevd(a, compute_v=1, lower=0, lwork=..., liwork=..., lrwork=..., overwrite_a=0) = <flapack function cheevd>#
Compute the eigenvalues and optionally the eigenvectors of a Hermitian matrix by divide-and-conquer (LAPACK
cheevd).- Parameters:
- andarray
Hermitian 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
Default is
2 * n + n ** 2with eigenvectors,n + 1without.- liworkint, optional
Default is
3 + 5 * nwith eigenvectors,1without.- lrworkint, optional
Size of the real workspace, which the real flavors do not have. Default is
1 + 5 * n + 2 * n ** 2with eigenvectors,nwithout.- 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.
- infoint
0 on success; if negative, the
-info-th argument had an illegal value; if positive, the algorithm failed to converge.