bundles / scipy latest / scipy / linalg / _flapack / dsygv
lapack_function
scipy.linalg._flapack:dsygv
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def dsygv(a, b, itype = 1, jobz = V, uplo = L, lwork = Ellipsis, overwrite_a = 0, overwrite_b = 0)Summary
Solve the generalized symmetric-definite eigenproblem (LAPACK dsygv).
Parameters
a: ndarraySymmetric matrix of shape
(n, n).b: ndarrayPositive definite matrix of shape
(n, n).itype: int, optionalWhich 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.jobz: str, optional'V'to compute eigenvectors,'N'for eigenvalues only. Default is'V'. This family spells it as a letter wheresyevusescompute_v.uplo: str, optional'U'or'L'for the triangle ofato reference. Default is'L'-- note that is the opposite of thelower=0default elsewhere in this group, so the same matrix can give different answers between families.lwork: int, optionalSize of the workspace. Default is
max(3 * n - 1, 1). Usedsygv_lworkfor the optimal value.overwrite_a: int, optionalIf nonzero, a may be overwritten in place. Default is 0.
overwrite_b: int, optionalIf nonzero,
bmay be overwritten in place. Default is 0.
Returns
w: ndarrayEigenvalues in ascending order, length
n. Real for every flavor.v: ndarrayEigenvectors as columns when
jobzis'V', normalized peritype.info: int0 on success; if negative, the
-info-th argument had an illegal value; if positive, the algorithm failed to converge.
Aliases
scipy.linalg._flapack.dsygv