TESTING/LIN/strt02.f(3)
π TESTING/LIN/strt02.f(3)
okay so bestie, this page is from the Library Functions Manual and it's all about strt02 β a subroutine that checks residuals for triangular solves. iykyk. it's giving LAPACK test energy, not main-character app energy.
πΈ NAME
TESTING/LIN/strt02.f
π SYNOPSIS
β¨ Functions/Subroutines
subroutine strt02 (uplo, trans, diag, n, nrhs, a, lda, x, ldx, b, ldb,
work, resid)
STRT02
π¦ Function/Subroutine Documentation
subroutine strt02 (character uplo, character trans, character diag, integer
n, integer nrhs, real, dimension( lda, * ) a, integer lda, real,
dimension( ldx, * ) x, integer ldx, real, dimension( ldb, * ) b, integer
ldb, real, dimension( * ) work, real resid)
STRT02
π Purpose
okay so STRT02 computes the residual for the computed solution to a triangular system of linear equations op(A)*X = B, where A is a triangular matrix. no cap. 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. periodt. π
π Parameters
UPLOβCHARACTER*1. tells you if the matrixAis upper or lower triangular, bestie.'U': Upper triangular'L': Lower triangular
TRANSβCHARACTER*1. says which operation is applied toA.'N':A * X = B(No transpose)'T':A**T * X = B(Transpose)'C':A**H * X = B(Conjugate transpose = Transpose)
DIAGβCHARACTER*1. tells you whether or not the matrixAis unit triangular.'N': Non-unit triangular'U': Unit triangular
NβINTEGER. the order of the matrixA.N >= 0.NRHSβINTEGER. the number of right hand sides, i.e., the number of columns of the matricesXandB.NRHS >= 0.AβREAL array, dimension (LDA,N). the triangular matrixA. IfUPLO = 'U', the leading n by n upper triangular part of the arrayAcontains the upper triangular matrix, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leading n by n lower triangular part of the arrayAcontains the lower triangular matrix, and the strictly upper triangular part ofAis not referenced. IfDIAG = 'U', the diagonal elements ofAare also not referenced and are assumed to be 1. π«ΆLDAβINTEGER. the leading dimension of the arrayA.LDA >= max(1,N).XβREAL array, dimension (LDX,NRHS). the computed solution vectors for the system of linear equations.LDXβINTEGER. the leading dimension of the arrayX.LDX >= max(1,N).BβREAL array, dimension (LDB,NRHS). the right hand side vectors for the system of linear equations.LDBβINTEGER. the leading dimension of the arrayB.LDB >= max(1,N).WORKβREAL array, dimension (N). that's the whole note, bestie.RESIDβREAL. the maximum over the number of right hand sides of:
norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ).
π« Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 148 of file strt02.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
sending kisses and slay vibes from the Library Functions Manual β footer energy: LAPACK Version 3.12.0, page TESTING/LIN/strt02.f(3) (no date line in this snippet, so that's all we got) πβ¨
π¦ 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