SRC/dsygv.f(3)
π©· SRC/dsygv.f
From the Library Functions Manual, with love: this is the DSYGV page, and it's lowkey iconic. π
β¨
β¨ NAME β¨
SRC/dsygv.f
π¦ SYNOPSIS π¦
π Functions/Subroutines π
subroutine dsygv (itype, jobz, uplo, n, a, lda, b, ldb, w, work, lwork,
info)
DSYGV
π Function/Subroutine Documentation π
π§ subroutine dsygv
subroutine dsygv (integer itype, character jobz, character uplo, integer n,
double precision, dimension( lda, * ) a, integer lda, double precision,
dimension( ldb, * ) b, integer ldb, double precision, dimension( * ) w,
double precision, dimension( * ) work, integer lwork, integer info)
DSYGV
π₯ Purpose
Bestie, DSYGV computes all the eigenvalues, and optionally the eigenvectors, of a real generalized symmetric-definite eigenproblem. It handles one of these three forms, exactly: A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x. Here A and B are assumed to be symmetric, and B is also positive definite. π«Ά
πΈ Parameters
ITYPEβ isINTEGER. It specifies the problem type to be solved:= 1:A*x = (lambda)*B*x= 2:A*B*x = (lambda)*x= 3:B*A*x = (lambda)*x
JOBZβ isCHARACTER*1.= 'N': compute eigenvalues only;= 'V': compute eigenvalues and eigenvectors.
UPLOβ isCHARACTER*1.= 'U': upper triangles ofAandBare stored;= 'L': lower triangles ofAandBare stored.
Nβ isINTEGER. The order of the matricesAandB.N >= 0.Aβ isDOUBLE PRECISION array, dimension (LDA, N). On entry, it's the symmetric matrixA. IfUPLO = 'U', the leadingN-by-Nupper triangular part ofAcontains the upper triangular part of the matrixA. IfUPLO = 'L', the leadingN-by-Nlower triangular part ofAcontains the lower triangular part of the matrixA. On exit, ifJOBZ = 'V', then ifINFO = 0,Acontains the matrixZof eigenvectors. The eigenvectors are normalized as follows: ifITYPE = 1or2,Z**T*B*Z = I; ifITYPE = 3,Z**T*inv(B)*Z = I. IfJOBZ = 'N', then on exit the upper triangle (ifUPLO='U') or the lower triangle (ifUPLO='L') ofA, including the diagonal, is destroyed.
π Danger tea: that destruction is real, bestie β including the diagonal.
LDAβ isINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).Bβ isDOUBLE PRECISION array, dimension (LDB, N). On entry, it's the symmetric positive definite matrixB. IfUPLO = 'U', the leadingN-by-Nupper triangular part ofBcontains the upper triangular part of the matrixB. IfUPLO = 'L', the leadingN-by-Nlower triangular part ofBcontains the lower triangular part of the matrixB. On exit, ifINFO <= N, the part ofBcontaining the matrix is overwritten by the triangular factorUorLfrom the Cholesky factorizationB = U**T*UorB = L*L**T.LDBβ isINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).Wβ isDOUBLE PRECISION array, dimension (N). IfINFO = 0, the eigenvalues in ascending order.WORKβ isDOUBLE PRECISION array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβ isINTEGER. The length of the arrayWORK.LWORK >= max(1,3*N-1). For optimal efficiency,LWORK >= (NB+2)*N, whereNBis the blocksize forDSYTRDreturned byILAENV. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA.INFOβ isINTEGER.= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value> 0:DPOTRForDSYEVreturned an error code:<= N: ifINFO = i,DSYEVfailed to converge;ioff-diagonal elements of an intermediate tridiagonal form did not converge to zero;> N: ifINFO = N + i, for1 <= i <= N, then the leading principal minor of orderiofBis not positive. The factorization ofBcould not be completed and no eigenvalues or eigenvectors were computed.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 173 of file dsygv.f.
π§ Author
Generated automatically by Doxygen for LAPACK from the source code.
That's the tea, bestie: this page is from LAPACK, Version 3.12.0, and it's page SRC/dsygv.f(3). No separate date is listed on the footer. πβ¨
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms