TESTING/LIN/zpot06.f(3)

πŸ“¦
version 3.12.1 Β· 3 versions
, in arch rolling

πŸ’… TESTING/LIN/zpot06.f(3) πŸ’…

okay so this is the Library Functions Manual page for TESTING/LIN/zpot06.f, and bestie, it’s giving β€œFortran residual-checking subroutine that knows exactly what it’s doing.” We’re talking about zpot06 β€” yes, the same energy as ZPOT06 β€” and I’m gonna walk you through every flag, parameter, and tiny detail without dropping a single crumb. 🫢✨

✨ NAME ✨

TESTING/LIN/zpot06.f β€” that’s the file/page name, and the main character is the subroutine zpot06. No cap. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

🧚 Functions/Subroutines 🧚

  • subroutine zpot06 (uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid) β€” and the page literally labels it ZPOT06. Iconic.
subroutine zpot06 (uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)

🌸 Function/Subroutine Documentation 🌸

Here’s the full signature in all its Fortran glory, exactly as written:

subroutine zpot06 (character uplo, integer n, integer nrhs, complex*16, dimension( lda, * ) a, integer lda, complex*16, dimension( ldx, * ) x, integer ldx, complex*16, dimension( ldb, * ) b, integer ldb, double precision, dimension( * ) rwork, double precision resid)

ZPOT06

πŸ’– Purpose πŸ’–

okay so the purpose: ZPOT06 computes the residual for a solution of a system of linear equations A*x = b:

RESID = norm(B - A*X,inf) / ( norm(A,inf) * norm(X,inf) * EPS )

where EPS is the machine epsilon. That’s the whole vibe: it’s checking how close the computed solution is, mathematically speaking. πŸ’…

πŸŽ€ Parameters πŸŽ€

here’s the cast, one by one, no skips:

  • UPLO β€” CHARACTER*1. Specifies whether the upper or lower triangular part of the symmetric matrix A is stored: = 'U': Upper triangular; = 'L': Lower triangular.
  • N β€” INTEGER. The number of rows and columns of the matrix A. N >= 0.
  • NRHS β€” INTEGER. The number of columns of B, the matrix of right hand sides. NRHS >= 0.
  • A β€” COMPLEX*16 array, dimension (LDA,N). The original M x N matrix A.
  • LDA β€” INTEGER. The leading dimension of the array A. LDA >= max(1,N).
  • X β€” COMPLEX*16 array, dimension (LDX,NRHS). The computed solution vectors for the system of linear equations.
  • LDX β€” INTEGER. The leading dimension of the array X. If TRANS = 'N', LDX >= max(1,N); if TRANS = 'T' or 'C', LDX >= max(1,N).
  • B β€” COMPLEX*16 array, dimension (LDB,NRHS). On entry, the right hand side vectors for the system of linear equations. On exit, B is overwritten with the difference B - A*X.
  • LDB β€” INTEGER. The leading dimension of the array B. IF TRANS = 'N', LDB >= max(1,M); if TRANS = 'T' or 'C', LDB >= max(1,N).
  • RWORK β€” DOUBLE PRECISION array, dimension (N).
  • RESID β€” DOUBLE PRECISION. The maximum over the number of right hand sides of norm(B - A*X) / ( norm(A) * norm(X) * EPS ).

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 125 of file zpot06.f.

🫢 Author 🫢

Generated automatically by Doxygen for LAPACK from the source code.


and that’s the page, bestie! πŸ’– source/version tea: LAPACK Version 3.12.0, page path TESTING/LIN/zpot06.f(3). The original footer didn’t hand me a date, so I’m not inventing one β€” just those exact receipts, periodt. 🌈🫢✨

πŸ“¦ where this page comes from