TESTING/LIN/spst01.f(3)
β¨ NAME β¨
okay so bestie, this is TESTING/LIN/spst01.f, from the Library Functions Manual, and it's the page for the spst01 subroutine. It's giving βnumerical linear algebra but make it cuteβ energy, and we're gonna get through every single detail together π
β¨
πΈ SYNOPSIS πΈ
π Functions/Subroutines π
subroutine spst01 (uplo, n, a, lda, afac, ldafac, perm, ldperm, piv,
rwork, resid, rank)
spst01βSPST01
π¦ Function/Subroutine Documentation π¦
subroutine spst01 (character uplo, integer n, real, dimension( lda, * ) a,
integer lda, real, dimension( ldafac, * ) afac, integer ldafac, real,
dimension( ldperm, * ) perm, integer ldperm, integer, dimension( * )
piv, real, dimension( * ) rwork, real resid, integer rank)
SPST01
β Purpose β
SPST01 reconstructs a symmetric positive semidefinite matrix A from its L or U factors and the permutation matrix P, and then computes the residual:
norm( P*L*L'*P' - A ) / ( N * norm(A) * EPS ) or
norm( P*U'*U*P' - A ) / ( N * norm(A) * EPS ),
where EPS is the machine epsilon. β¨
π Parameters π
UPLOβCHARACTER*1. Specifies whether the upper or lower triangular part of the symmetric matrixAis stored:= 'U':Upper triangular= 'L':Lower triangular
NβINTEGER. The number of rows and columns of the matrixA.N >= 0.AβREALarray, dimension(LDA,N). The original symmetric matrixA.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,N)AFACβREALarray, dimension(LDAFAC,N). The factorLorUfrom theL*L'orU'*Ufactorization ofA.LDAFACβINTEGER. The leading dimension of the arrayAFAC.LDAFAC >= max(1,N).PERMβREALarray, dimension(LDPERM,N). Overwritten with the reconstructed matrix, and then with the differenceP*L*L'*P' - A(orP*U'*U*P' - A).LDPERMβINTEGER. The leading dimension of the arrayPERM.LDAPERM >= max(1,N).
bestie, yes, the page literally says LDAPERM right there β I'm quoting it exactly, no autocorrect, no cap π
PIVβINTEGERarray, dimension(N).PIVis such that the nonzero entries areP( PIV( K ), K ) = 1.RWORKβREALarray, dimension(N).RESIDβREAL. IfUPLO = 'L',norm(L*L' - A) / ( N * norm(A) * EPS ). IfUPLO = 'U',norm(U'*U - A) / ( N * norm(A) * EPS ).RANKβINTEGER. number of nonzero singular values ofA.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 132 of file spst01.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
cute little sign-off, bestie: this page comes from LAPACK Version 3.12.0, page TESTING/LIN/spst01.f(3), and the footer doesn't show a date β so I'm not inventing one, periodt ππ«Ά
π¦ 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