SRC/cpptrs.f(3)
π NAME π
SRC/cpptrs.f β no cap, that's the whole name, bestie, she's lowkey mysterious like that β¨
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine cpptrs (uplo, n, nrhs, ap, b, ldb, info)β CPPTRS π
π Function/Subroutine Documentation π
subroutine cpptrs (character uplo, integer n, integer nrhs, complex,
dimension( * ) ap, complex, dimension( ldb, * ) b, integer ldb, integer
info)
CPPTRS π
β¨ Purpose β¨
!> CPPTRS solves a system of linear equations A*X = B with a Hermitian !> positive definite matrix A in packed storage using the Cholesky !> factorization A = UH*U or A = L*LH computed by CPPTRF. !>
Like, okay β she's out here solving A*X = B for you, where A is Hermitian positive definite and lives in packed storage (so she's compact and efficient, we stan π«Ά). She uses the Cholesky factorization A = U**H*U or A = L*L**H that CPPTRF already cooked up. Iconic teamwork fr fr π₯
πΈ Parameters πΈ
UPLO
!> UPLO is CHARACTER*1 !> = 'U': Upper triangle of A is stored; !> = 'L': Lower triangle of A is stored. !>
Bestie, this one's just vibes selection: 'U' means the upper triangle of A is the one being stored, 'L' means the lower triangle. Choose your fighter π
N
!> N is INTEGER !> The order of the matrix A. N >= 0. !>
The order of matrix A, i.e. N >= 0. Keep it non-negative or she will simply not β
NRHS
!> NRHS is INTEGER !> The number of right hand sides, i.e., the number of columns !> of the matrix B. NRHS >= 0. !>
How many right hand sides you've got, so basically the number of columns of matrix B. NRHS >= 0, periodt π
AP
!> AP is COMPLEX array, dimension (N*(N+1)/2) !> The triangular factor U or L from the Cholesky factorization !> A = UH*U or A = L*LH, packed columnwise in a linear !> array. The j-th column of U or L is stored in the array AP !> as follows: !> if UPLO = 'U', AP(i + (j-1)j/2) = U(i,j) for 1<=i<=j; !> if UPLO = 'L', AP(i + (j-1)(2n-j)/2) = L(i,j) for j<=i<=n. !>
AP is a COMPLEX array of dimension (N*(N+1)/2) β she's the triangular factor U or L from that Cholesky factorization A = U**H*U or A = L*L**H, packed columnwise into one linear array. The j-th column of U or L sits in AP like this:
- if
UPLO = 'U',AP(i + (j-1)*j/2) = U(i,j)for1<=i<=j; - if
UPLO = 'L',AP(i + (j-1)*(2n-j)/2) = L(i,j)forj<=i<=n.
Index math but make it fashion π§ Write it down, iykyk π
B
!> B is COMPLEX array, dimension (LDB,NRHS) !> On entry, the right hand side matrix B. !> On exit, the solution matrix X. !>
B is a COMPLEX array of dimension (LDB,NRHS). On entry she's the right hand side matrix B; on exit she's transformed β the solution matrix X. Glow-up arc, main character energy π
LDB
!> LDB is INTEGER !> The leading dimension of the array B. LDB >= max(1,N). !>
LDB is an INTEGER: the leading dimension of array B. Must be LDB >= max(1,N). Respect the constraint or it's giving error π
INFO
!> INFO is INTEGER !> = 0: successful exit !> < 0: if INFO = -i, the i-th argument had an illegal value !>
INFO = 0β successful exit, we love a clean win β¨INFO < 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 107 of file cpptrs.f. β
π Author π
Generated automatically by Doxygen for LAPACK from the source code. She's not hand-written, she's generated, and honestly? Still ate π
LAPACK β Version 3.12.0 π¦ that's the whole squad signing off, SRC/cpptrs.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