SRC/chpgst.f(3)
π NAME
SRC/chpgst.f β bestie, this is the CHPGST situation, and it's about to reduce a complex Hermitian-definite generalized eigenproblem to standard form using packed storage. Iconic behavior, honestly.
β¨ SYNOPSIS
π Functions/Subroutines
subroutine chpgst (itype, uplo, n, ap, bp, info)
CHPGST π
π«Ά Function/Subroutine Documentation
πΈ subroutine chpgst
subroutine chpgst (integer itype, character uplo, integer n, complex, dimension( * ) ap, complex, dimension( * ) bp, integer info)
CHPGST β okay so this is the whole vibe:
π₯ Purpose
CHPGST reduces a complex Hermitian-definite generalized eigenproblem to standard form, using packed storage.
So like, here's how it goes down, depending on ITYPE:
- If
ITYPE = 1, the problem isA*x = lambda*B*x, andAis overwritten byinv(U**H)*A*inv(U)orinv(L)*A*inv(L**H). - If
ITYPE = 2or3, the problem isA*B*x = lambda*xorB*A*x = lambda*x, andAis overwritten byU*A*U**HorL**H*A*L.
π¨ Important, no cap:Bmust have been previously factorized asU**H*UorL*L**Hby CPPTRF. Like, that's a prerequisite, bestie. Not optional.
π Parameters
ITYPEβITYPE is INTEGER. The selector, the moment, the main character:= 1: computeinv(U**H)*A*inv(U)orinv(L)*A*inv(L**H);= 2 or 3: computeU*A*U**HorL**H*A*L.
UPLOβUPLO is CHARACTER*1. Which triangle are we serving today?= 'U': Upper triangle ofAis stored andBis factored asU**H*U;= 'L': Lower triangle ofAis stored andBis factored asL*L**H.
NβN is INTEGER. The order of the matricesAandB. AndN >= 0, periodt. Negative N is not the vibe.APβAP is COMPLEX array, dimension (N*(N+1)/2). On entry, it's the upper or lower triangle of the Hermitian matrixA, packed columnwise in a linear array. π The j-th column ofAlives inAPlike this:
if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.
On exit, if INFO = 0, you get the transformed matrix, stored in the same format as A. She glows up in place π
BPβBP is COMPLEX array, dimension (N*(N+1)/2). This one holds the triangular factor from the Cholesky factorization ofB, stored in the same format asA, exactly as returned by CPPTRF. (iykyk π«Ά)INFOβINFO is INTEGER. The receipts:= 0: successful exit β¨ slay;< 0: ifINFO = -i, the i-th argument had an illegal value π not slay.
π§ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β Definition at line 112 of file chpgst.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code. (Not a human, just a little automaton doing its thing π)
And that's the whole page, bestie β LAPACK, Version 3.12.0, SRC/chpgst.f(3). Go forth and factorize responsibly π
π¦ 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