TESTING/LIN/sgtt02.f(3)

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

✨ NAME ✨

okay so bestie, this page is for TESTING/LIN/sgtt02.f β€” the manual page name is TESTING/LIN/sgtt02.f(3), and it lives in the Library Functions Manual. it's all about the Fortran subroutine sgtt02, no cap πŸ’–


🌸 SYNOPSIS 🌸

πŸ¦‹ Functions/Subroutines πŸ¦‹

subroutine sgtt02 (trans, n, nrhs, dl, d, du, x, ldx, b, ldb, resid)
    SGTT02

🧚 Function/Subroutine Documentation 🧚

subroutine sgtt02 (character trans, integer n, integer nrhs, real,
    dimension( * ) dl, real, dimension( * ) d, real, dimension( * ) du,
    real, dimension( ldx, * ) x, integer ldx, real, dimension( ldb, * ) b,
    integer ldb, real resid)

SGTT02

🎯 Purpose: 🎯

bestie, the whole point is this: SGTT02 computes the residual for the solution to a tridiagonal system of equations:

RESID = norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS),
where EPS is the machine epsilon.

the norm used is the 1-norm. periodt. ✨

πŸ’… Parameters πŸ’…

  • TRANS β€” TRANS is CHARACTER. it specifies the form of the residual:
    • = 'N': B - A * X (No transpose)
    • = 'T': B - A**T * X (Transpose)
    • = 'C': B - A**H * X (Conjugate transpose = Transpose)
  • 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 B and X. NRHS >= 0.
  • DL β€” DL is REAL array, dimension (N-1). the (n-1) sub-diagonal elements of A.
  • D β€” D is REAL array, dimension (N). the diagonal elements of A.
  • DU β€” DU is REAL array, dimension (N-1). the (n-1) super-diagonal elements of A.
  • X β€” X is REAL array, dimension (LDX,NRHS). the computed solution vectors X.
  • LDX β€” LDX is INTEGER. the leading dimension of the array X. LDX >= max(1,N).
  • B β€” B is REAL 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 - op(A)*X.
  • LDB β€” LDB is INTEGER. the leading dimension of the array B. LDB >= max(1,N).
  • RESID β€” RESID is REAL. norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS).

πŸ‘‘ Author πŸ‘‘

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

Definition at line 123 of file sgtt02.f.

🌈 Author 🌈

Generated automatically by Doxygen for LAPACK from the source code.


bye bestie πŸ’– this iconic page is source/version LAPACK / Version 3.12.0, and the manual page is TESTING/LIN/sgtt02.f(3). slay. πŸŽ€

πŸ“¦ where this page comes from