SRC/zhegv.f(3)
hey bestie π welcome to SRC/zhegv.f(3) from the Library Functions Manual β weβre doing complex Hermitian math today and itβs giving main character energy β¨
πΈ NAME πΈ
SRC/zhegv.f
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine zhegv (itype, jobz, uplo, n, a, lda, b, ldb, w, work, lwork,
rwork, info)
ZHEGV
π Function/Subroutine Documentation π
π¦ subroutine zhegv π¦
subroutine zhegv (integer itype, character jobz, character uplo, integer n,
complex*16, dimension( lda, * ) a, integer lda, complex*16, dimension(
ldb, * ) b, integer ldb, double precision, dimension( * ) w, complex*16,
dimension( * ) work, integer lwork, double precision, dimension( * )
rwork, integer info)
ZHEGV
π― Purpose:
okay so ZHEGV 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. lowkey iconic problem setup, ngl π
π Parameters
ITYPEβITYPEisINTEGER. 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βJOBZisCHARACTER*1.= 'N': Compute eigenvalues only;= 'V': Compute eigenvalues and eigenvectors.
UPLOβUPLOisCHARACTER*1.= 'U': Upper triangles ofAandBare stored;= 'L': Lower triangles ofAandBare stored.
NβNisINTEGER. The order of the matricesAandB.N >= 0.AβAisCOMPLEX*16array, dimension(LDA, N).- On entry, the Hermitian matrix
A. 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 ifINFO = 0,Acontains the matrixZof eigenvectors. The eigenvectors are normalized as follows:- if
ITYPE = 1or2,Z**H*B*Z = I; - if
ITYPE = 3,Z**H*inv(B)*Z = I.
- if
- If
JOBZ = 'N', then on exit the upper triangle (ifUPLO='U') or the lower triangle (ifUPLO='L') ofA, including the diagonal, is destroyed. π dramatic but true.
- On entry, the Hermitian matrix
LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).BβBisCOMPLEX*16array, dimension(LDB, N).- On entry, the Hermitian positive definite matrix
B. 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 ofBcontaining the matrix is overwritten by the triangular factorUorLfrom the Cholesky factorizationB = U**H*UorB = L*L**H.
- On entry, the Hermitian positive definite matrix
LDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).WβWisDOUBLE PRECISIONarray, dimension(N). IfINFO = 0, the eigenvalues in ascending order. cute and ordered πWORKβWORKisCOMPLEX*16array, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORKisINTEGER. The length of the arrayWORK.LWORK >= max(1,2*N-1). For optimal efficiency,LWORK >= (NB+1)*N, whereNBis the blocksize forZHETRDreturned byILAENV.- If
LWORK = -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.
- If
RWORKβRWORKisDOUBLE PRECISIONarray, dimension(max(1, 3*N-2)).INFOβINFOisINTEGER.= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value> 0:ZPOTRForZHEEVreturned an error code:<= N: ifINFO = i,ZHEEVfailed 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 179 of file zhegv.f.
π€ Author
Generated automatically by Doxygen for LAPACK from the source code.
okay thatβs the whole page bestie π itβs LAPACK, Version 3.12.0, SRC/zhegv.f(3) β mwah, stay hydrated and may your eigenvectors stay normalized π«Ά
π¦ 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