SRC/chptri.f(3)
πΈ SRC/chptri.f β from the Library Functions Manual π
okay bestie, sit down, we're doing linear algebra today β¨ this is a page out of the Library Functions Manual, and honestly? she's iconic. it's SRC/chptri.f, and she inverts complex Hermitian indefinite matrices. yes, that kind. no cap, she ate. π₯
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine chptri (uplo, n, ap, ipiv, work, info)
CHPTRI β that's the whole name, she's lowkey mysterious like that π
π¦ Function/Subroutine Documentation π¦
subroutine chptri (character uplo, integer n, complex, dimension( * ) ap,
integer, dimension( * ) ipiv, complex, dimension( * ) work, integer
info)
CHPTRI β here's her whole deal π
π Purpose:
CHPTRI computes the inverse of a complex Hermitian indefinite matrix A in packed storage using the factorization A = U*D*U**H or A = L*D*L**H computed by CHPTRF.
so basically: CHPTRF did the hard part (the factorization), and CHPTRI comes in and flips it into an inverse. it's giving "I'll finish what you started" main character energy π
π Parameters π
UPLOβUPLO is CHARACTER*1. tells us whether the factorization details are stored as an upper or lower triangular matrix, iykyk:= 'U':upper triangular, form isA = U*D*U**H;= 'L':lower triangular, form isA = L*D*L**H.
NβN is INTEGER. the order of the matrixA. and the vibe check isN >= 0(if N is negative, that's a no from her π).APβAP is COMPLEX array, dimension (N*(N+1)/2). okay so on entry, this holds the block diagonal matrixDand the multipliers used to obtain the factorUorLas computed byCHPTRF, stored as a packed triangular matrix. on exit, ifINFO = 0, you get the (Hermitian) inverse of the original matrix, stored as a packed triangular matrix. the j-th column ofinv(A)is stored in the arrayAPlike this:- if
UPLO = 'U',AP(i + (j-1)*j/2) = inv(A)(i,j)for1<=i<=j; - if
UPLO = 'L',AP(i + (j-1)*(2n-j)/2) = inv(A)(i,j)forj<=i<=n.
- if
literally copy those index formulas exactly, bestie, they are not vibes-based π«Ά
IPIVβIPIV is INTEGER array, dimension (N). the details of the interchanges and the block structure ofD, as determined byCHPTRF. she got receipts πWORKβWORK is COMPLEX array, dimension (N). scratch space, she's just there to help πΈINFOβINFO is INTEGER. the outcome, the moment of truth:= 0:successful exit π slay;< 0:ifINFO = -i, the i-th argument had an illegal value (you gave her something cursed π);> 0:ifINFO = i,D(i,i) = 0; the matrix is singular and its inverse could not be computed. she literally cannot, the math does not exist π
fr fr, if you see INFO > 0 don't come for her β the matrix was singular. it's not her fault. π₯²
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β Definition
Definition at line 108 of file chptri.f.
π Author (again, the meta one)
Generated automatically by Doxygen for LAPACK from the source code. yeah, she was born from a machine, and she's still iconic π§
LAPACK Β· Version 3.12.0 Β· SRC/chptri.f(3)
and that's the whole page, bestie β go invert something Hermitian, drink some water, and remember: packed storage is just storage with β¨auraβ¨. 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