SRC/chegv.f(3)
π CHEGV π
okay bestie, this is the page for SRC/chegv.f(3) from the Library Functions Manual, and the main character is CHEGV π«Ά. It's giving complex generalized Hermitian-definite eigenproblem energy, and yes, we're keeping every single detail.
β¨ NAME β¨
SRC/chegv.f
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine chegvβCHEGV
subroutine chegv (itype, jobz, uplo, n, a, lda, b, ldb, w, work, lwork,
rwork, info)
CHEGV
π¦ Function/Subroutine Documentation π¦
π«Ά subroutine chegv
subroutine chegv (integer itype, character jobz, character uplo, integer n,
complex, dimension( lda, * ) a, integer lda, complex, dimension( ldb, *
) b, integer ldb, real, dimension( * ) w, complex, dimension( * ) work,
integer lwork, real, dimension( * ) rwork, integer info)
CHEGV
π‘ Purpose
CHEGV computes all the eigenvalues, and optionally, the eigenvectors of a complex generalized Hermitian-definite eigenproblem, of the form A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x. Here A and B are assumed to be Hermitian and B is also positive definite. β¨
π Parameters
ITYPEβITYPE is INTEGER. 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βJOBZ is CHARACTER*1= 'N': Compute eigenvalues only;= 'V': Compute eigenvalues and eigenvectors.
UPLOβUPLO is CHARACTER*1= 'U': Upper triangles of A and B are stored;= 'L': Lower triangles of A and B are stored.
NβN is INTEGER. The order of the matricesAandB.N >= 0.AβA is COMPLEX array, dimension (LDA, N). On entry, the Hermitian 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, if JOBZ = 'V', then if INFO = 0, A contains the matrix Z of eigenvectors. The eigenvectors are normalized as follows:
- if
ITYPE = 1 or 2,Z**H*B*Z = I; - if
ITYPE = 3,Z**H*inv(B)*Z = I.
If JOBZ = 'N', then on exit the upper triangle (if UPLO='U') or the lower triangle (if UPLO='L') of A, including the diagonal, is destroyed. π
LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,N).BβB is COMPLEX array, dimension (LDB, N). On entry, the Hermitian 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, if INFO <= N, the part of B containing the matrix is overwritten by the triangular factor U or L from the Cholesky factorization B = U**H*U or B = L*L**H.
LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).WβW is REAL array, dimension (N). IfINFO = 0, the eigenvalues in ascending order.WORKβWORK is COMPLEX array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORK is INTEGER. The length of the arrayWORK.LWORK >= max(1,2*N-1). For optimal efficiency,LWORK >= (NB+1)*N, whereNBis the blocksize forCHETRDreturned byILAENV.
If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA.
RWORKβRWORK is REAL array, dimension (max(1, 3*N-2)).INFOβINFO is INTEGER= 0: successful exit< 0: if INFO = -i, the i-th argument had an illegal value> 0: CPOTRF or CHEEV returned an error code:<= N: if INFO = i, CHEEV failed to converge;i off-diagonal elements of an intermediatetridiagonal form did not converge to zero;> N: if INFO = N + i, for 1 <= i <= N, then the leadingprincipal minor of order i of B is not positive.The factorization of B could not be completed andno eigenvalues or eigenvectors were computed.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 179 of file chegv.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie, that's the whole page. The footer vibe is LAPACK Version 3.12.0 and SRC/chegv.f(3) β mwah π
β¨
π¦ 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