scipy.linalg.lapack.zhegv#
- scipy.linalg.lapack.zhegv(a, b, itype=1, jobz='V', uplo='L', lwork=..., overwrite_a=0, overwrite_b=0) = <flapack function zhegv>#
Solve the generalized Hermitian-definite eigenproblem (LAPACK
zhegv).- Parameters:
- andarray
Hermitian 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.- 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.- lworkint, optional
Size of the workspace. Default is
max(2 * n - 1, 1). Usezhegv_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.- vndarray
Eigenvectors as columns when jobz is
'V', normalized per itype.- infoint
0 on success; if negative, the
-info-th argument had an illegal value; if positive, the algorithm failed to converge.