ZTPT03(3)
πΈ Welcome, bestie, to ztpt03.f(3) πΈ
This is a Library Functions Manual page, and the manual name is ztpt03.f(3). It's giving very specific LAPACK testing energy, and honestly? We're obsessed. π
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/ztpt03.f
π SYNOPSIS π
π¦ Functions/Subroutines π¦
subroutine ZTPT03 (uplo, trans, diag, n, nrhs, ap, scale, cnorm, tscal,
x, ldx, b, ldb, work, resid)
ZTPT03
π Function/Subroutine Documentation π
Here's the full signature, exactly as it appears, no cap:
subroutine ZTPT03 (character uplo, character trans, character diag, integer
n, integer nrhs, complex*16, dimension( * ) ap, 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)
ZTPT03
π Purpose π
Okay so listen: ZTPT03 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 the triangular matrix A is stored in packed format. 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. Iconic little residual check, honestly. π«Ά
π Parameters π
UPLOβUPLO is CHARACTER*1, and it specifies whether the matrixAis upper or lower triangular. The vibes are:
= 'U': Upper triangular
= 'L': Lower triangular
TRANSβTRANS is CHARACTER*1, and it specifies the operation 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βDIAG is CHARACTER*1, and it specifies whether or not the matrixAis unit triangular:
= 'N': Non-unit triangular
= 'U': Unit triangular
NβN is INTEGER. It's the order of the matrixA, andN >= 0.NRHSβNRHS is INTEGER. It's the number of right hand sides, i.e., the number of columns of the matricesXandB, andNRHS >= 0.APβAP is COMPLEX*16 array, dimension (N*(N+1)/2). It's the upper or lower triangular matrixA, packed columnwise in a linear array. Thej-th column ofAis stored in the arrayAPas follows:
if UPLO = 'U', AP((j-1)*j/2 + i) = A(i,j) for 1<=i<=j;
if UPLO = 'L',
AP((j-1)*(n-j) + j*(j+1)/2 + i-j) = A(i,j) for j<=i<=n.
SCALEβSCALE is DOUBLE PRECISION. It's the scaling factorsused in solving the triangular system.CNORMβCNORM is DOUBLE PRECISION array, dimension (N). It holds the 1-norms of the columns ofA, not counting the diagonal.TSCALβTSCAL is DOUBLE PRECISION. It's the scaling factor used in computing the 1-norms inCNORM.CNORMactually contains the column norms ofTSCAL*A.XβX is COMPLEX*16 array, dimension (LDX,NRHS). It holds the computed solution vectors for the system of linear equations.LDXβLDX is INTEGER. It's the leading dimension of the arrayX, andLDX >= max(1,N).BβB is COMPLEX*16 array, dimension (LDB,NRHS). It holds the right hand side vectors for the system of linear equations.LDBβLDB is INTEGER. It's the leading dimension of the arrayB, andLDB >= max(1,N).WORKβWORK is COMPLEX*16 array, dimension (N).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 ).
π Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 160 of file ztpt03.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Final cute sign-off, bestie: this footer situation is LAPACK Version 3.12.0 and /home/abui...IN/ztpt03.f(3). Byeee, go compute those residuals responsibly π
β¨π
π¦ 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