STPT02(3)
π STPT02(3) β like, the Library Functions Manual entry, bestie π
okay so this is the STPT02 page from the Library Functions Manual, and the file it lives in is literally:
/home/abuild/rpmbuild/BUILD/lapack-
static-3.12.0-build/lapack-3.12.0/TESTING/LIN/stpt02.f
that's the NAME, no cap. it's a .f file, it's Fortran, it's giving "we test things here" β¨
β¨ SYNOPSIS β¨
Functions/Subroutines π¦
subroutine STPT02 (uplo, trans, diag, n, nrhs, ap, x, ldx, b, ldb, work, resid)β the whole squad, assembled. also: it'sSTPT02. that's it. that's the subtitle. π
πΈ Function/Subroutine Documentation πΈ
subroutine STPT02 (character uplo, character trans, character diag, integer
n, integer nrhs, real, dimension( * ) ap, real, dimension( ldx, * ) x,
integer ldx, real, dimension( ldb, * ) b, integer ldb, real, dimension(
* ) work, real resid)
STPT02 β yes queen, that's the name again, she's consistent π
π― Purpose π―
!>!> STPT02 computes the residual for the computed solution to a!> triangular system of linear equations op(A)*X = B, when the!> triangular matrix A is stored in packed format. The test ratio is!> the maximum over!> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),!> where op(A) = A or A**T, b is the column of B, x is the solution!> vector, and EPS is the machine epsilon.!> The norm used is the 1-norm.!>
so basically, bestie: she's checking how good your answer is π«Ά she takes the residual of the computed solution to a triangular system op(A)*X = B, where A is triangular and stored in packed format β and the test ratio is the max over that whole fraction up there. and the norm? the 1-norm, always, periodt. π₯
π Parameters π
UPLOβUPLO is CHARACTER*1. tells you whetherAis upper or lower triangular:= 'U': upper triangular β¬οΈ,= 'L': lower triangular β¬οΈ.TRANSβTRANS is CHARACTER*1. the operation being applied toA:= 'N':A * X = B (No transpose),= 'T':A**T * X = B (Transpose),= 'C':A**H * X = B (Conjugate transpose = Transpose). yes she said conjugate transpose equals transpose, for real matrices it literally does, iykyk π§DIAGβDIAG is CHARACTER*1. is the matrixAunit triangular or not:= 'N': non-unit triangular,= 'U': unit triangular.NβN is INTEGER. the order of the matrixA.N >= 0. π«NRHSβNRHS is INTEGER. how many right hand sides β aka the number of columns of the matricesXandB.NRHS >= 0.APβAP is REAL array, dimension (N*(N+1)/2). the upper or lower triangular matrixA, packed columnwise in a linear array. the j-th column ofAsits inAPlike this:- if
UPLO = 'U',AP((j-1)*j/2 + i) = A(i,j)for1<=i<=j; - if
UPLO = 'L',AP((j-1)*(n-j) + j*(j+1)/2 + i-j) = A(i,j)forj<=i<=n.
- if
copy those indices exactly, do NOT freestyle them, that's the whole vibe check π
XβX is REAL array, dimension (LDX,NRHS). the computed solution vectors for the system of linear equations. the main character, honestly πLDXβLDX is INTEGER. the leading dimension of the arrayX.LDX >= max(1,N). πBβB is REAL array, dimension (LDB,NRHS). the right hand side vectors for the system of linear equations.LDBβLDB is INTEGER. the leading dimension of the arrayB.LDB >= max(1,N).WORKβWORK is REAL array, dimension (N). that's it. that's the whole description. she works. πRESIDβRESID is REAL. the maximum over the number of right hand sides ofnorm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ). this is the answer-answer, the final score, the moment π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole collective ate, fr fr π
Definition at line 140 of file stpt02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this page, a robot did it, and we respect the robot π
and that's the whole page, bestie β no notes, no cap, slay π
lowkey reminder: every number, every= 'U', everyAP((j-1)*j/2 + i)index stays exactly as written. she's cute but she's also precise. periodt. π
sign-off time: this icon was running the LAPACK edition of the docs, Version 3.12.0, and the file was living at /home/abui...IN/stpt02.f(3) β mwah, bye bestie π¦π
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms