TESTING/LIN/sppt01.f(3)
π NAME π
Okay so this page is literally the manual for TESTING/LIN/sppt01.f(3), under the Library Functions Manual umbrella, and the main-character subroutine is sppt01. Periodt. π
π SYNOPSIS π
β¨ Functions/Subroutines β¨
subroutine sppt01 (uplo, n, a, afac, rwork, resid)βSPPT01(thatβs the label, bestie).
π¦ Function/Subroutine Documentation π¦
subroutine sppt01 (character uplo, integer n, real, dimension( * ) a, real,
dimension( * ) afac, real, dimension( * ) rwork, real resid)
SPPT01
π― Purpose π―
Bestie, SPPT01 reconstructs a symmetric positive definite packed matrix A from its L*L' or U'*U factorization, then computes the residual. The residual formulas are exactly:
norm( L*L' - A ) / ( N * norm(A) * EPS ) or
norm( U'*U - A ) / ( N * norm(A) * EPS ),
where EPS is the machine epsilon. No cap, thatβs the whole mission. π«Ά
π§Έ Parameters π§Έ
UPLOβUPLO is CHARACTER*1. It specifies whether the upper or lower triangular part of the symmetric matrixAis stored:= 'U': Upper triangular;= 'L': Lower triangular. Pick your lane, upper or lower. πNβN is INTEGER. The number of rows and columns of the matrixA.N >= 0. β¨AβA is REAL array, dimension (N*(N+1)/2). This is the original symmetric matrixA, stored as a packed triangular matrix. Packed and ready. πAFACβAFAC is REAL array, dimension (N*(N+1)/2). On entry, this is the factorLorUfrom theL*L'orU'*Ufactorization ofA, stored as a packed triangular matrix. It gets overwritten with the reconstructed matrix, and then with the differenceL*L' - A(orU'*U - A). So yeah, it does not stay the same β itβs giving transformation. π¦RWORKβRWORK is REAL array, dimension (N). Thatβs it, thatβs the whole note. πΈRESIDβRESID is REAL. IfUPLO = 'L', itβsnorm(L*L' - A) / ( N * norm(A) * EPS ). IfUPLO = 'U', itβsnorm(U'*U - A) / ( N * norm(A) * EPS ). Residual math, slay. β
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 92 of file sppt01.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. Iconic automation behavior, honestly. π«
Sign-off tea: this page comes from LAPACK, Version 3.12.0, and the footer tags it as TESTING/LIN/sppt01.f(3). Date-wise? The page doesnβt list one, so thatβs the whole footer vibe β no extra date, bestie. πβ¨π
π¦ 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