TESTING/LIN/ztpt02.f(3)
πΈ NAME πΈ
TESTING/LIN/ztpt02.f β okay bestie, this is the manual page for the ztpt02 source file. The manual name folded up top is TESTING/LIN/ztpt02.f(3) from the Library Functions Manual, and we are keeping that exact name in the group chat notes π
.
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine ztpt02 (uplo, trans, diag, n, nrhs, ap, x, ldx, b, ldb, work,
rwork, resid)
ZTPT02
π§ Function/Subroutine Documentation π§
subroutine ztpt02 (character uplo, character trans, character diag, integer
n, integer nrhs, complex*16, dimension( * ) ap, 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)
ZTPT02
ZTPT02 β that's the icon, no notes π.
π Purpose π
Okay so ZTPT02 computes the residual for the computed solution to a triangular system of linear equations op(A)*X = B, when the triangular matrix A is stored in packed format. 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. That's the whole plot, no cap π
.
π Parameters π
UPLOisCHARACTER*1β tells you whether matrixAis upper or lower triangular.'U': Upper triangular'L': Lower triangular
TRANSisCHARACTER*1β tells you which operation gets applied toA.'N':A * X = B(No transpose)'T':A**T * X = B(Transpose)'C':A**H * X = B(Conjugate transpose)
DIAGisCHARACTER*1β says whether or not matrixAis unit triangular.'N': Non-unit triangular'U': Unit triangular
NisINTEGERβ the order of matrixA. Constraint:N >= 0.NRHSisINTEGERβ the number of right hand sides, i.e., the number of columns of matricesXandB. Constraint:NRHS >= 0.APisCOMPLEX*16 array, dimension (N*(N+1)/2)β the upper or lower triangular matrixA, packed columnwise in a linear array. Thej-th column ofAis stored inAPlike this:
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.
XisCOMPLEX*16 array, dimension (LDX,NRHS)β the computed solution vectors for the system of linear equations.LDXisINTEGERβ the leading dimension of arrayX. Constraint:LDX >= max(1,N).BisCOMPLEX*16 array, dimension (LDB,NRHS)β the right hand side vectors for the system of linear equations.LDBisINTEGERβ the leading dimension of arrayB. Constraint:LDB >= max(1,N).WORKisCOMPLEX*16 array, dimension (N)β that's it, no extra lore.RWORKisDOUBLE PRECISION array, dimension (N)β same energy, different precision.RESIDisDOUBLE 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 145 of file ztpt02.f.
π¦ Author π¦
Generated automatically by Doxygen for LAPACK from the source code.
Okay bestie, that's the whole page. The footer energy is LAPACK Version 3.12.0 and TESTING/LIN/ztpt02.f(3) β source/version and page name, all present and accounted for, mwah ππ
π¦ 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