TESTING/LIN/dtrt03.f(3)
π TESTING/LIN/dtrt03.f(3) π
hey bestie, welcome to the TESTING/LIN/dtrt03.f(3) page from the Library Functions Manual. itβs giving βLAPACK test routine with main character energy,β and weβre gonna get through every detail together, no cap. π
πΈ NAME πΈ
TESTING/LIN/dtrt03.f β yes, thatβs the file, bestie. iconic name, zero notes. π
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine dtrt03 (uplo, trans, diag, n, nrhs, a, lda, scale, cnorm,
tscal, x, ldx, b, ldb, work, resid)
DTRT03
π Function/Subroutine Documentation π
subroutine dtrt03 (character uplo, character trans, character diag, integer
n, integer nrhs, double precision, dimension( lda, * ) a, integer lda,
double precision scale, double precision, dimension( * ) cnorm, double
precision tscal, double precision, dimension( ldx, * ) x, integer ldx,
double precision, dimension( ldb, * ) b, integer ldb, double precision,
dimension( * ) work, double precision resid)
DTRT03
okay so, DTRT03 is the routine name, and itβs literally right there at the end. π«Ά
π¦ Purpose π¦
DTRT03 computes the residual for the solution to a scaled triangular system of equations. The two vibes are:
A*x = s*b or A'*x = s*b
Here A is a triangular matrix, A' is the transpose of A, s is a scalar, and x and b are N by NRHS matrices. π
The test ratio is the maximum over the number of right hand sides of:
norm(s*b - op(A)*x) / ( norm(op(A)) * norm(x) * EPS ),
where op(A) denotes A or A' and EPS is the machine epsilon. periodt. π«
π Parameters π
π UPLO π
UPLO is CHARACTER*1. It specifies whether the matrix A is upper or lower triangular:
= 'U': Upper triangular= 'L': Lower triangular
π TRANS π
TRANS is CHARACTER*1. It specifies the operation applied to A:
= 'N':A *x = s*b(No transpose)= 'T':A'*x = s*b(Transpose)= 'C':A'*x = s*b(Conjugate transpose = Transpose)
π DIAG π
DIAG is CHARACTER*1. It specifies whether or not the matrix A is unit triangular:
= 'N': Non-unit triangular= 'U': Unit triangular
π N π
N is INTEGER. Itβs the order of the matrix A. And the rule is: N >= 0. β¨
π NRHS π
NRHS is INTEGER. Itβs the number of right hand sides, i.e., the number of columns of the matrices X and B. And: NRHS >= 0. π¦
π A π
A is a DOUBLE PRECISION array, dimension (LDA,N). Itβs the triangular matrix A, bestie. Hereβs the tea:
- If
UPLO = '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. - If
UPLO = '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. - If
DIAG = 'U', the diagonal elements ofAare also not referenced and are assumed to be 1.
π LDA π
LDA is INTEGER. Itβs the leading dimension of the array A. The rule: LDA >= max(1,N). π do not mess this up.
π SCALE π
SCALE is DOUBLE PRECISION. Itβs the scaling factor s used in solving the triangular system. πΈ
π CNORM π
CNORM is a DOUBLE PRECISION array, dimension (N). It holds the 1-norms of the columns of A, not counting the diagonal. π
π TSCAL π
TSCAL is DOUBLE PRECISION. Itβs the scaling factor used in computing the 1-norms in CNORM. And just so you know: CNORM actually contains the column norms of TSCAL*A. π«Ά
π X π
X is a DOUBLE PRECISION array, dimension (LDX,NRHS). Itβs the computed solution vectors for the system of linear equations. β¨
π LDX π
LDX is INTEGER. Itβs the leading dimension of the array X. The rule: LDX >= max(1,N). π
π B π
B is a DOUBLE PRECISION array, dimension (LDB,NRHS). Itβs the right hand side vectors for the system of linear equations. π
π LDB π
LDB is INTEGER. Itβs the leading dimension of the array B. The rule: LDB >= max(1,N). π
π WORK π
WORK is a DOUBLE PRECISION array, dimension (N). thatβs the whole description, bestie β no extra lore. π«‘
π RESID π
RESID is DOUBLE PRECISION. Itβs the maximum over the number of right hand sides of:
norm(op(A)*x - s*b) / ( norm(op(A)) * norm(x) * EPS ).
literally the residual moment. π₯
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 167 of file dtrt03.f. π
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code. π€β¨
okay thatβs the whole page, bestie β source/version sign-off: LAPACK, Version 3.12.0, and the page is TESTING/LIN/dtrt03.f(3). slay, and good luck with those residuals π
ππ
π¦ 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