TESTING/LIN/dptt02.f(3)

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

🌸 NAME 🌸

okay bestie, welcome to the Library Functions Manual page for TESTING/LIN/dptt02.f β€” it's a LAPACK test routine that does a residual check for a symmetric tridiagonal solve. It's giving "trust but verify" energy, and honestly? iconic. πŸ’…


✨ SYNOPSIS ✨

🧚 Functions/Subroutines

  • subroutine dptt02 (n, nrhs, d, e, x, ldx, b, ldb, resid) β€” DPTT02

🫢 Function/Subroutine Documentation 🫢

   subroutine dptt02 (integer n, integer nrhs, double precision, dimension( * )
       d, double precision, dimension( * ) e, double precision, dimension( ldx,
       * ) x, integer ldx, double precision, dimension( ldb, * ) b, integer
       ldb, double precision resid)
       DPTT02

✨ Purpose ✨

DPTT02 computes the residual for the solution to a symmetric tridiagonal system of equations:

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

where EPS is the machine epsilon. πŸŽ€

πŸŽ€ Parameters πŸŽ€

  • N β€” INTEGER; the order of the matrix A. πŸ‘‘
  • NRHS β€” INTEGER; the number of right hand sides, i.e., the number of columns of the matrices B and X. It has to satisfy NRHS >= 0. 🫢
  • D β€” DOUBLE PRECISION array, dimension (N); the n diagonal elements of the tridiagonal matrix A. ⭐
  • E β€” DOUBLE PRECISION array, dimension (N-1); the (n-1) subdiagonal elements of the tridiagonal matrix A. πŸ¦‹
  • X β€” DOUBLE PRECISION array, dimension (LDX,NRHS); the n by nrhs matrix of solution vectors X. πŸ’œ
  • LDX β€” INTEGER; the leading dimension of the array X. Needs LDX >= max(1,N). ✨
  • B β€” DOUBLE PRECISION array, dimension (LDB,NRHS); on entry, the n by nrhs matrix of right hand side vectors B. On exit, B is overwritten with the difference B - A*X. πŸ’–
  • LDB β€” INTEGER; the leading dimension of the array B. Needs LDB >= max(1,N). 🌈
  • RESID β€” DOUBLE PRECISION; it's norm(B - A*X) / (norm(A) * norm(X) * EPS). πŸ”₯

πŸ‘‘ Author πŸ‘‘

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

πŸ¦‹ Definition πŸ¦‹

Definition at line 103 of file dptt02.f.


🌈 Author 🌈

Generated automatically by Doxygen for LAPACK from the source code. πŸ€–


okay bestie, that's the whole page β€” LAPACK Version 3.12.0, source TESTING/LIN/dptt02.f(3), mwah πŸ’‹

πŸ“¦ where this page comes from