SRC/dpotri.f(3)
π
SRC/dpotri.f β from the LAPACK manual, bestie
okay so this is a page straight outta the LAPACK Library Functions Manual β¨ and it's all about one little subroutine that un-does a Cholesky factorization. yes. we're inverting a matrix. it's giving math girlboss and honestly? obsessed π
πΈ NAME πΈ
SRC/dpotri.f β the file where our main character lives π«Ά
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines
subroutine dpotri (uplo, n, a, lda, info)β the one, the only,DPOTRIπ
π Function/Subroutine Documentation π
subroutine dpotri (character uplo, integer n, double precision, dimension(
lda, * ) a, integer lda, integer info)
so this is DPOTRI, the icon, the moment, the legend π
π§ Purpose:
!>!> DPOTRI computes the inverse of a real symmetric positive definite!> matrix A using the Cholesky factorization A = U**T*U or A = L*L**T!> computed by DPOTRF.!>
lowkey what this means: DPOTRI computes the inverse of a real symmetric positive definite matrix A, and it does that using the Cholesky factorization A = U**T*U or A = L*L**T β the one that DPOTRF already computed for you. so like, DPOTRF did the hard part, and DPOTRI finishes the job. team work makes the dream work fr fr π
π Parameters π
π UPLO
!> UPLO is CHARACTER*1!> = 'U': Upper triangle of A is stored;!> = 'L': Lower triangle of A is stored.!>
UPLO is CHARACTER*1 and it's basically the vibe selector π
= 'U'β the upper triangle ofAis stored= 'L'β the lower triangle ofAis stored
pick your fighter bestie, but only one β
πΈ N
!> N is INTEGER!> The order of the matrix A. N >= 0.!>
N is an INTEGER β it's the order of the matrix A, and it must satisfy N >= 0. respect the constraint or don't come π
π A
!> A is DOUBLE PRECISION array, dimension (LDA,N)!> On entry, the triangular factor U or L from the Cholesky!> factorization A = U**T*U or A = L*L**T, as computed by!> DPOTRF.!> On exit, the upper or lower triangle of the (symmetric)!> inverse of A, overwriting the input factor U or L.!>
A is a DOUBLE PRECISION array, dimension (LDA,N), and it has a whole glow-up arc β¨
- on entry β it holds the triangular factor
UorLfrom the Cholesky factorizationA = U**T*UorA = L*L**T, exactly as computed byDPOTRF - on exit β it holds the upper or lower triangle of the (symmetric) inverse of
A, and it overwrites the input factorUorL
so yeah, your factor is gone, replaced by the inverse. not me destroying the evidence π
π¦ LDA
!> LDA is INTEGER!> The leading dimension of the array A. LDA >= max(1,N).!>
LDA is an INTEGER β the leading dimension of the array A, and it has to be LDA >= max(1,N). no cap, max(1,N) is the floor π«Ά
π₯ INFO
!> INFO is INTEGER!> = 0: successful exit!> < 0: if INFO = -i, the i-th argument had an illegal value!> > 0: if INFO = i, the (i,i) element of the factor U or L is!> zero, and the inverse could not be computed.!>
INFO is an INTEGER and it's the vibe check at the end π
= 0β successful exit, we ate π< 0β ifINFO = -i, thei-th argument had an illegal value π> 0β ifINFO = i, the(i,i)element of the factorUorLis zero, and the inverse could not be computed π
so like, if INFO > 0 the inverse literally could not be computed. that's not a warning to ignore, bestie β the answer does not exist π¨
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad showed up, we love a collab π
β Definition at line 94 of file dpotri.f. β
literally line 94, go look, iykyk π
π§ Author π§
Generated automatically by Doxygen for LAPACK from the source code. not a human, just a very efficient little robot doing its thing π€β¨
and that's the page!! π this was LAPACK, Version 3.12.0, dated SRC/dpotri.f(3) β mwah, slay, periodt π«Άπ
π¦ 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