scipy.linalg.lapack.dsygvx#
- scipy.linalg.lapack.dsygvx(a, b, itype=1, jobz='V', range='A', uplo='L', vl=0.0, vu=1.0, il=1, iu=n, abstol=0.0, lwork=..., overwrite_a=0, overwrite_b=0) = <flapack function dsygvx>#
Compute selected eigenvalues of the generalized symmetric-definite problem (LAPACK
dsygvx).- Parameters:
- andarray
Symmetric matrix of shape
(n, n).- bndarray
Positive definite matrix of shape
(n, n).- itypeint, optional
Which generalized problem to solve: 1 for
a @ x = w * b @ x, 2 fora @ b @ x = w * x, 3 forb @ a @ x = w * x. Default is 1.- jobzstr, optional
'V'to compute eigenvectors,'N'for eigenvalues only. Default is'V'. This family spells it as a letter wheresyevuses compute_v.- rangestr, optional
'A'for all eigenvalues,'V'for those in(vl, vu],'I'for those indexed il through iu. Default is'A'.- uplostr, optional
'U'or'L'for the triangle of a to reference. Default is'L'– note that is the opposite of the lower=0 default elsewhere in this group, so the same matrix can give different answers between families.- 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(8 * n, 1). Usedsygvx_lworkfor the optimal value.- overwrite_aint, optional
If nonzero, a may be overwritten in place. Default is 0.
- overwrite_bint, optional
If nonzero, b 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 jobz is
'N'.- 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.