ZTPT02(3)
๐
ZTPT02(3) โ Library Functions Manual
okay so bestie, welcome to ZTPT02(3) from the Library Functions Manual. This is the page for the ZTPT02 subroutine, and yes it's lowkey iconic for residual-checking a packed triangular solve โจ.
๐ธ NAME ๐ธ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/ztpt02.f
that's the file path, periodt.
โจ SYNOPSIS โจ
๐ง Functions/Subroutines
subroutine ZTPT02 (uplo, trans, diag, n, nrhs, ap, x, ldx, b, ldb, work,
rwork, resid)
ZTPT02
๐ Function/Subroutine Documentation ๐
okay, deep breath, here's the full signature:
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
๐ฏ Purpose
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 math vibe ๐งฎโจ.
๐๏ธ Parameters
Every single param, no cap:
UPLOโUPLOisCHARACTER*1. Specifies whether the matrixAis upper or lower triangular.= 'U': Upper triangular= 'L': Lower triangular
TRANSโTRANSisCHARACTER*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โDIAGisCHARACTER*1. Specifies whether or not the matrixAis unit triangular.= 'N': Non-unit triangular= 'U': Unit triangular
NโNisINTEGER. The order of the matrixA.N >= 0.NRHSโNRHSisINTEGER. The number of right hand sides, i.e., the number of columns of the matricesXandB.NRHS >= 0.APโ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 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.
XโXisCOMPLEX*16 array, dimension (LDX,NRHS). The computed solution vectors for the system of linear equations.LDXโLDXisINTEGER. The leading dimension of the arrayX.LDX >= max(1,N).BโBisCOMPLEX*16 array, dimension (LDB,NRHS). The right hand side vectors for the system of linear equations.LDBโLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).WORKโWORKisCOMPLEX*16 array, dimension (N).RWORKโRWORKisDOUBLE PRECISION array, dimension (N).RESIDโRESIDisDOUBLE PRECISION. The maximum over the number of right hand sides of:
norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ).
๐ซถ Author
shoutout to the institutions behind it:
- 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. Signed off with LAPACK Version 3.12.0 and the source path /home/abui...IN/ztpt02.f(3). mwah ๐โจ
๐ฆ 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