TESTING/LIN/ctrt02.f(3)
πΈ NAME πΈ
TESTING/LIN/ctrt02.f β okay bestie, this is the page for ctrt02, and it lives in the Library Functions Manual π
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines π¦
subroutine ctrt02 (uplo, trans, diag, n, nrhs, a, lda, x, ldx, b, ldb,
work, rwork, resid)
CTRT02 β that's the name, periodt β¨
π Function/Subroutine Documentation π
π ctrt02 π
subroutine ctrt02 (character uplo, character trans, character diag, integer
n, integer nrhs, complex, dimension( lda, * ) a, integer lda, complex,
dimension( ldx, * ) x, integer ldx, complex, dimension( ldb, * ) b,
integer ldb, complex, dimension( * ) work, real, dimension( * ) rwork,
real resid)
CTRT02 π
π― Purpose
CTRT02 computes the residual for the computed solution to a triangular system of linear equations op(A)*X = B, where A is a triangular matrix. The test ratio is the maximum over
norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS )
where op(A) = A, A**T, or A**H, b is the column of B, x is the solution vector, and EPS is the machine epsilon. Slay, that's the whole vibe of what it checks π
π§Έ Parameters
UPLOβUPLO is CHARACTER*1. It says whether matrixAis upper or lower triangular.= 'U': Upper triangular= 'L': Lower triangular
TRANSβTRANS is CHARACTER*1. Specifies the operation applied toA.= 'N':A * X = B (No transpose)= 'T':A**T * X = B (Transpose)= 'C':A**H * X = B (Conjugate transpose)
DIAGβDIAG is CHARACTER*1. Says whether matrixAis unit triangular or not.= 'N': Non-unit triangular= 'U': Unit triangular
NβN is INTEGER. The order of matrixA.N >= 0.NRHSβNRHS is INTEGER. The number of right hand sides, i.e., the number of columns of matricesXandB.NRHS >= 0.AβA is COMPLEX array, dimension (LDA,N). The triangular matrixA. IfUPLO = 'U', the leadingnbynupper triangular part of arrayAcontains the upper triangular matrix, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leadingnbynlower triangular part of 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 be1. No cap, that's important πLDAβLDA is INTEGER. The leading dimension of arrayA.LDA >= max(1,N).XβX is COMPLEX array, dimension (LDX,NRHS). The computed solution vectors for the system of linear equations.LDXβLDX is INTEGER. The leading dimension of arrayX.LDX >= max(1,N).BβB is COMPLEX array, dimension (LDB,NRHS). The right hand side vectors for the system of linear equations.LDBβLDB is INTEGER. The leading dimension of arrayB.LDB >= max(1,N).WORKβWORK is COMPLEX array, dimension (N).RWORKβRWORK is REAL array, dimension (N).RESIDβRESID is 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 π
Definition at line 153 of file ctrt02.f.
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page, bestie π«Ά source/version: LAPACK Version 3.12.0; page: TESTING/LIN/ctrt02.f(3); date: not listed on this page πβ¨
π¦ 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