scipy.linalg.lapack.zheevx#
- scipy.linalg.lapack.zheevx(a, compute_v=1, range='A', lower=0, vl=0.0, vu=1.0, il=1, iu=n, abstol=0.0, lwork=..., overwrite_a=0) = <flapack function zheevx>#
Compute selected eigenvalues and optionally eigenvectors of a Hermitian matrix (LAPACK
zheevx).- Parameters:
- andarray
Hermitian matrix of shape
(n, n).- compute_vint, optional
If nonzero, eigenvectors are computed as well as eigenvalues. Default is 1.
- rangestr, optional
'A'for all eigenvalues,'V'for those in(vl, vu],'I'for those indexed il through iu. Default is'A'.- lowerint, optional
If nonzero, the lower triangle of a is referenced; otherwise the upper. Default is 0.
- vlfloat, optional
Lower bound of the interval; used only when range is
'V'. Default is 0.0.- vufloat, optional
Upper bound of the interval; used only when range is
'V'. Default is 1.0.- ilint, optional
Index of the smallest eigenvalue to return, 1-based; used only when range is
'I'. Default is 1.- iuint, optional
Index of the largest eigenvalue to return, 1-based; used only when range is
'I'. Default isn.- abstolfloat, optional
Absolute error tolerance for the eigenvalues. Default is 0.0.
- lworkint, optional
Size of the workspace. Default is
max(2 * n, 1). Usezheevx_lworkfor 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.- zndarray
The m computed eigenvectors as columns, or empty when compute_v is 0.
- mint
Number of eigenvalues found.
- ifailndarray
Indices of eigenvectors that failed to converge, 1-based.
- infoint
0 on success; if negative, the
-info-th argument had an illegal value; if positive, the algorithm failed to converge.