SRC/zhpgv.f(3)
πΈ NAME πΈ
SRC/zhpgv.f β okay bestie, this is the LAPACK page for the zhpgv subroutine, straight out of the LAPACK Library Functions Manual. Yes, we're reading the whole thing, and yes, it's gonna be cute but also extremely thorough. π
π SYNOPSIS π
β¨ Functions/Subroutines β¨
subroutine zhpgv (itype, jobz, uplo, n, ap, bp, w, z, ldz, work, rwork,
info)
ZHPGV
π¦ Function/Subroutine Documentation π¦
subroutine zhpgv (integer itype, character jobz, character uplo, integer n,
complex*16, dimension( * ) ap, complex*16, dimension( * ) bp, double
precision, dimension( * ) w, complex*16, dimension( ldz, * ) z, integer
ldz, complex*16, dimension( * ) work, double precision, dimension( * )
rwork, integer info)
ZHPGV
π― Purpose
So ZHPGV computes all the eigenvalues and, optionally, the eigenvectors of a complex generalized Hermitian-definite eigenproblem. The forms are A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x. Here A and B are assumed to be Hermitian, stored in packed format, and B is also positive definite. That's the whole vibe. β¨
π Parameters
ITYPEβITYPE is INTEGER. 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β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.APβAP is COMPLEX*16 array, dimension (N*(N+1)/2). On entry, this is the upper or lower triangle of the Hermitian matrixA, packed columnwise in a linear array. The j-th column ofAis stored in the arrayAPas follows:- if
UPLO = 'U',AP(i + (j-1)*j/2) = A(i,j)for1<=i<=j; - if
UPLO = 'L',AP(i + (j-1)*(2*n-j)/2) = A(i,j)forj<=i<=n.
- if
On exit, the contents of AP are destroyed. π
BPβBP is COMPLEX*16 array, dimension (N*(N+1)/2). On entry, this is the upper or lower triangle of the Hermitian matrixB, packed columnwise in a linear array. The j-th column ofBis stored in the arrayBPas follows:- if
UPLO = 'U',BP(i + (j-1)*j/2) = B(i,j)for1<=i<=j; - if
UPLO = 'L',BP(i + (j-1)*(2*n-j)/2) = B(i,j)forj<=i<=n.
- if
On exit, this holds the triangular factor U or L from the Cholesky factorization B = U**H*U or B = L*L**H, in the same storage format as B.
WβW is DOUBLE PRECISION array, dimension (N). IfINFO = 0, the eigenvalues are in ascending order. Slay.ZβZ is COMPLEX*16 array, dimension (LDZ, N). IfJOBZ = 'V', then ifINFO = 0,Zcontains the matrixZof 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
If JOBZ = 'N', then Z is not referenced.
LDZβLDZ is INTEGER. The leading dimension of the arrayZ.LDZ >= 1, and ifJOBZ = 'V',LDZ >= max(1,N).WORKβWORK is COMPLEX*16 array, dimension (max(1, 2*N-1)).RWORKβRWORK is DOUBLE PRECISION array, dimension (max(1, 3*N-2)).INFOβINFO is INTEGER.= 0:successful exit< 0:ifINFO = -i, the i-th argument had an illegal value> 0:ZPPTRForZHPEVreturned an error code:<= N:ifINFO = i,ZHPEVfailed to converge; i off-diagonal elements of an intermediate tridiagonal form did not convergeto zero;> N:ifINFO = N + i, for1 <= i <= n, then the leading principal minor of order i ofBis 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 163 of file zhpgv.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
later bestie π
β LAPACK Version 3.12.0, SRC/zhpgv.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