SRC/zpptrs.f(3)
π SRC/zpptrs.f
okay bestie, so this is a page from the LAPACK Library Functions Manual (that's the manual family it lives in, iykyk) and it's all about one little subroutine named zpptrs. she's a solver. she's iconic. let's get into it. β¨
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine zpptrs (uplo, n, nrhs, ap, b, ldb, info)β ZPPTRS π«Ά
π Function/Subroutine Documentation π
subroutine zpptrs (character uplo, integer n, integer nrhs, complex*16,
dimension( * ) ap, complex*16, dimension( ldb, * ) b, integer ldb,
integer info)
ZPPTRS
πΈ Purpose πΈ
ZPPTRS 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 ZPPTRF.
so basically she takes the Cholesky factor that ZPPTRF already did the hard work of computing, and she solves the whole A*X = B situation for you. no cap. π
π¦ Parameters π¦
UPLOβUPLO is CHARACTER*1. which triangle of A are we even talking about?= 'U': Upper triangle of A is stored; = 'L': Lower triangle of A is stored.pick one, bestie. πNβN is INTEGER. the order of the matrix A. and like,N >= 0. (zero is allowed, she's flexible like that. β¨)NRHSβNRHS is INTEGER. the number of right hand sides, i.e., the number of columns of the matrix B. alsoNRHS >= 0. πAPβAP is COMPLEX*16 array, dimension (N*(N+1)/2). this is the triangular factor U or L from the Cholesky factorizationA = U**H * UorA = L * L**H, packed columnwise in a linear array. the j-th column of U or L is stored in the array 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.
- if
yes the index math is giving main character energy, but it's literally just columnwise packing. trust. π
BβB is COMPLEX*16 array, dimension (LDB,NRHS). on entry, it's the right hand side matrix B. on exit, plot twist, it's the solution matrix X. she ate. π₯LDBβLDB is INTEGER. the leading dimension of the array B.LDB >= max(1,N). respect the leading dimension or face consequences, fr fr. πINFOβINFO is INTEGER. the vibe check:= 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 107 of file zpptrs.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π§ (yes, a robot wrote the docs, she's doing her best.)
and that's the whole page, bestie β no notes, periodt. π
mwah π β this was LAPACK, Version 3.12.0, dated SRC/zpptrs.f(3), and yes the footer said so, so I'm saying so. π«Ά
π¦ 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