SRC/cpotrs.f(3)
β¨ SRC/cpotrs.f β¨
okay bestie, gather round, because this is the cpotrs.f manpage from the LAPACK library manual and it's lowkey iconic π
(the manual name is LAPACK, fr β we're in the Library Functions Manual, section 3)
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine cpotrs (uplo, n, nrhs, a, lda, b, ldb, info)β CPOTRS
πΈ Function/Subroutine Documentation πΈ
subroutine cpotrs (character uplo, integer n, integer nrhs, complex,
dimension( lda, * ) a, integer lda, complex, dimension( ldb, * ) b,
integer ldb, integer info)
CPOTRS β say it with me, bestie π
π Purpose π
k so here's the tea β β CPOTRS solves a system of linear equations A*X = B with a Hermitian positive definite matrix A using the Cholesky factorization A = U**H*U or A = L*L**H computed by CPOTRF. that's it, that's the whole vibe. it takes the factorization your girl CPOTRF already did and actually solves the thing. slay π
π Parameters π
UPLOβUPLO is CHARACTER*1. it tells you which triangle ofAis stored, and there are exactly two moods:= 'U':Upper triangle ofAis stored;= 'L':Lower triangle ofAis stored.
NβN is INTEGER. the order of the matrixA. the rules are simple:N >= 0. no cap π«ΆNRHSβNRHS is INTEGER. the number of right hand sides, i.e., the number of columns of the matrixB. and yes,NRHS >= 0β that constraint is literally non-negotiable β¨AβA is COMPLEX array, dimension (LDA,N). this is the triangular factorUorLfrom the Cholesky factorizationA = U**H*UorA = L*L**H, as computed byCPOTRF. it's giving "hand me the factorized version, I'll take it from here" πLDAβLDA is INTEGER. the leading dimension of the arrayA. and the boundary isLDA >= max(1,N). respect it πBβB is COMPLEX array, dimension (LDB,NRHS). on entry, the right hand side matrixB. on exit, the solution matrixX. so it's a glow-up situation β same array, new identity, main character energy πLDBβLDB is INTEGER. the leading dimension of the arrayB. fun little rule:LDB >= max(1,N)πINFOβINFO is INTEGER. the vibe check at the end:= 0:successful exit β¨< 0:ifINFO = -i, the i-th argument had an illegal value π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 109 of file cpotrs.f. π
π§ Author π§
Generated automatically by Doxygen for LAPACK from the source code. (yes bestie, a robot wrote the manpage, the algorithm wrote the math, and I'm just here making it cute π«Ά)
k that's the whole page, no gatekeeping π LAPACK, Version 3.12.0, SRC/cpotrs.f(3) β go solve something, icon πΈπ¦π
π¦ 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