TESTING/LIN/stpt01.f(3)
πΈ NAME πΈ
okay so bestie, this page is TESTING/LIN/stpt01.f β yes, that whole file/page name β and it lives in the Library Functions Manual. We are officially in LAPACK testing territory π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine stpt01 (uplo, diag, n, ap, ainvp, rcond, work, resid)βSTPT01
π« Function/Subroutine Documentation π«
the stpt01 subroutine π
subroutine stpt01 (character uplo, character diag, integer n, real,
dimension( * ) ap, real, dimension( * ) ainvp, real rcond, real,
dimension( * ) work, real resid)
STPT01
Purpose π¦
STPT01 computes the residual for a triangular matrix A times its inverse when A is stored in packed format:
RESID = norm(A*AINV - I) / ( N * norm(A) * norm(AINV) * EPS ),
where EPS is the machine epsilon. slay, that's the whole mathematical vibe β¨
Parameters π
UPLOβUPLO is CHARACTER*1. Specifies whether the matrix A is upper or lower triangular.= 'U': Upper triangular.= 'L': Lower triangular.DIAGβDIAG is CHARACTER*1. Specifies whether or not the matrix A is unit triangular.= 'N': Non-unit triangular.= 'U': Unit triangular.NβN is INTEGER. The order of the matrix A.N >= 0.APβAP is REAL array, dimension (N*(N+1)/2). The original upper or lower triangular matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: ifUPLO = 'U',AP((j-1)*j/2 + i) = A(i,j)for1<=i<=j; ifUPLO = 'L',AP((j-1)*(n-j) + j*(j+1)/2 + i-j) = A(i,j)forj<=i<=n.AINVPβAINVP is REAL array, dimension (N*(N+1)/2). On entry, the (triangular) inverse of the matrix A, packed columnwise in a linear array as in AP. On exit, the contents of AINVP are destroyed β like, gone gone πRCONDβRCOND is REAL. The reciprocal condition number of A, computed as1/(norm(A) * norm(AINV)).WORKβWORK is REAL array, dimension (N).RESIDβRESID is REAL.norm(A*AINV - I) / ( N * norm(A) * norm(AINV) * EPS ).
Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 107 of file stpt01.f.
πͺ Author πͺ
Generated automatically by Doxygen for LAPACK from the source code.
okay bye bestie π«Ά β the footer says LAPACK Version 3.12.0 and TESTING/LIN/stpt01.f(3), so that's the source/version/page situation at the very end. 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