ZTBT03(3)
π NAME π
ok so this is /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/ztbt03.f β yes that whole entire path is the name, bestie, it's a LAPACK test routine living its best life in the TESTING/LIN folder π and this page is from the Library Functions Manual, so you already know it's giving serious function-documentation energy β¨
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine ZTBT03 (uplo, trans, diag, n, kd, nrhs, ab, ldab, scale,
cnorm, tscal, x, ldx, b, ldb, work, resid)
ZTBT03
ok so it's literally just called ZTBT03, no cap π«Ά
π₯ Function/Subroutine Documentation π₯
subroutine ZTBT03 (character uplo, character trans, character diag, integer
n, integer kd, integer nrhs, complex*16, dimension( ldab, * ) ab,
integer ldab, double precision scale, double precision, dimension( * )
cnorm, double precision tscal, complex*16, dimension( ldx, * ) x,
integer ldx, complex*16, dimension( ldb, * ) b, integer ldb, complex*16,
dimension( * ) work, double precision resid)
ZTBT03
β¨ Purpose β¨
!>
!> ZTBT03 computes the residual for the solution to a scaled triangular
!> system of equations A*x = s*b, A**T *x = s*b, or A**H *x = s*b
!> when A is a triangular band matrix. Here A**T denotes the transpose
!> of A, A**H denotes the conjugate 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, A**T, or A**H, and EPS is the machine epsilon.
!>
so basically π ZTBT03 is the vibe-check enforcer for a scaled triangular system β the equations A*x = s*b, or A**T *x = s*b, or A**H *x = s*b β where A is a triangular band matrix. A**T means transpose of A, A**H means conjugate transpose of A, s is a scalar, and x and b are N by NRHS matrices, fr fr.
the test ratio? it's the maximum over all the right hand sides of:
norm(s*b - op(A)*x) / ( norm(op(A)) * norm(x) * EPS ),
where op(A) means A, A**T, or A**H depending on the mood, and EPS is the machine epsilon. math is mathing π
π Parameters π
UPLOβCHARACTER*1β tells you ifAis upper or lower triangular.= 'U': upper triangular π¦= 'L': lower triangular πΈTRANSβCHARACTER*1β which operation is being applied toA.= 'N':A *x = s*b(no transpose) π= 'T':A**T *x = s*b(transpose) π₯= 'C':A**H *x = s*b(conjugate transpose) πDIAGβCHARACTER*1β isAa unit triangular matrix or not.= 'N': non-unit triangular β= 'U': unit triangular πNβINTEGERβ the order of the matrixA.N >= 0πKDβINTEGERβ the number of superdiagonals or subdiagonals of the triangular band matrixA.KD >= 0πNRHSβINTEGERβ the number of right hand sides, i.e. the number of columns of the matricesXandB.NRHS >= 0β¨ABβCOMPLEX*16array, dimension(LDAB,N)β the upper or lower triangular band matrixA, stored in the firstkd+1rows of the array. thej-th column ofAis stored in thej-th column of the arrayABlike this: ifUPLO = 'U',AB(kd+1+i-j,j) = A(i,j)formax(1,j-kd)<=i<=j; ifUPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+kd). the indexing is a whole journey but she's iconic πLDABβINTEGERβ the leading dimension of the arrayAB.LDAB >= KD+1π«ΆSCALEβDOUBLE PRECISIONβ the scaling factorsused in solving the triangular system π§CNORMβDOUBLE PRECISIONarray, dimension(N)β the 1-norms of the columns ofA, not counting the diagonal π (important!)TSCALβDOUBLE PRECISIONβ the scaling factor used in computing those 1-norms inCNORM. soCNORMactually contains the column norms ofTSCAL*Aβ yeah, plot twist πXβCOMPLEX*16array, 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βCOMPLEX*16array, 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βCOMPLEX*16array, dimension(N)β that's it. that's the whole description. a workspace. little guy just doing his job πRESIDβDOUBLE PRECISIONβ the maximum over the number of right hand sides ofnorm(op(A)*x - s*b) / ( norm(op(A)) * norm(x) * EPS )π₯
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition π
Definition at line 174 of file ztbt03.f.
π Author (again, yes really) π
Generated automatically by Doxygen for LAPACK from the source code.
hey bestie you made it to the very end, so here's the sign-off π this whole page is from LAPACK, Version 3.12.0, and it came out of /home/abui...IN/ztbt03.f(3) β stan the build system for me, ok bye πβ¨π¦
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms