TESTING/LIN/ztbt02.f(3)
π TESTING/LIN/ztbt02.f(3) π
okay bestie, welcome to the Library Functions Manual page for TESTING/LIN/ztbt02.f β itβs giving LAPACK testing subroutine energy, and the main character is ZTBT02. β¨
πΈ NAME πΈ
TESTING/LIN/ztbt02.f β yes, thatβs the file, and this whole page is about the ZTBT02 subroutine. π
β¨ SYNOPSIS β¨
π Functions/Subroutines π
The synopsis is literally this:
subroutine ztbt02 (uplo, trans, diag, n, kd, nrhs, ab, ldab, x, ldx, b,
ldb, work, rwork, resid)
ZTBT02
π Function/Subroutine Documentation π
ZTBT02
Hereβs the full signature, exact and unfiltered:
subroutine ztbt02 (character uplo, character trans, character diag, integer
n, integer kd, integer nrhs, complex*16, dimension( ldab, * ) ab,
integer ldab, complex*16, dimension( ldx, * ) x, integer ldx,
complex*16, dimension( ldb, * ) b, integer ldb, complex*16, dimension( *
) work, double precision, dimension( * ) rwork, double precision resid)
ZTBT02
π― Purpose
ZTBT02 computes the residual for the computed solution to a triangular system of linear equations op(A)*X = B, when A is a triangular band matrix. The test ratio is the maximum over this exact formula:
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. π«Ά
π§ Parameters π§
UPLOβCHARACTER*1. Tells you whether the matrixAis upper or lower triangular.= 'U':Upper triangular= 'L':Lower triangular
TRANSβ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βCHARACTER*1. Specifies whether or not the matrixAis unit triangular.= '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(LDA,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 arrayABas follows:
if UPLO = 'U', AB(kd+1+i-j,j) = A(i,j) for max(1,j-kd)<=i<=j;
if UPLO = 'L', AB(1+i-j,j) = A(i,j) for j<=i<=min(n,j+kd).
LDABβINTEGER. The leading dimension of the arrayAB.LDAB >= max(1,KD+1).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).RWORKβDOUBLE PRECISIONarray, dimension(N).RESIDβDOUBLE PRECISION. 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 157 of file ztbt02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
LAPACK Version 3.12.0 β source page TESTING/LIN/ztbt02.f(3) β thatβs the footer, bestie. No cap, you ate. πβ¨
π¦ 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