ZTPT02(3)

๐Ÿ“ฆ version 3.12.0, in opensuse-leap 16.0

๐Ÿ’… 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 โ€” UPLO is CHARACTER*1. Specifies whether the matrix A is upper or lower triangular.
    • = 'U': Upper triangular
    • = 'L': Lower triangular
  • TRANS โ€” TRANS is CHARACTER*1. Specifies the operation applied to A.
    • = 'N': A * X = B (No transpose)
    • = 'T': A**T * X = B (Transpose)
    • = 'C': A**H * X = B (Conjugate transpose)
  • DIAG โ€” DIAG is CHARACTER*1. Specifies whether or not the matrix A is unit triangular.
    • = 'N': Non-unit triangular
    • = 'U': Unit triangular
  • N โ€” N is INTEGER. The order of the matrix A. N >= 0.
  • NRHS โ€” NRHS is INTEGER. The number of right hand sides, i.e., the number of columns of the matrices X and B. NRHS >= 0.
  • AP โ€” AP is COMPLEX*16 array, dimension (N*(N+1)/2). The upper or lower triangular matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as 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 โ€” X is COMPLEX*16 array, dimension (LDX,NRHS). The computed solution vectors for the system of linear equations.
  • LDX โ€” LDX is INTEGER. The leading dimension of the array X. LDX >= max(1,N).
  • B โ€” B is COMPLEX*16 array, dimension (LDB,NRHS). The right hand side vectors for the system of linear equations.
  • LDB โ€” LDB is INTEGER. The leading dimension of the array B. LDB >= max(1,N).
  • WORK โ€” WORK is COMPLEX*16 array, dimension (N).
  • RWORK โ€” RWORK is DOUBLE PRECISION array, dimension (N).
  • RESID โ€” RESID is DOUBLE 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