TESTING/LIN/sqrt16.f(3)

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

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

okay bestie, this page lives in the Library Functions Manual, and it's all about TESTING/LIN/sqrt16.f. lowkey iconic. ✨


NAME 🌸

TESTING/LIN/sqrt16.f β€” that's the file, bestie. The main character here is SQRT16, a subroutine, and this page is its whole lore. πŸ’–

SYNOPSIS ✨

Functions/Subroutines 🫢

subroutine sqrt16 (trans, m, n, nrhs, a, lda, x, ldx, b, ldb, rwork,
           resid)

SQRT16 β€” yeah, that's the synopsis vibe. 🫢

Function/Subroutine Documentation πŸ¦‹

subroutine sqrt16 (character trans, integer m, integer n, integer nrhs,
    real, dimension( lda, * ) a, integer lda, real, dimension( ldx, * ) x,
    integer ldx, real, dimension( ldb, * ) b, integer ldb, real, dimension(
    * ) rwork, real resid)

SQRT16

Purpose πŸŽ€

okay so SQRT16 computes the residual for a solution of a system of linear equations A*x = b or A'*x = b:

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

where EPS is the machine epsilon. literally the math version of a vibe check. no cap. πŸ’…

Parameters πŸ’–

  • TRANS β€” TRANS is CHARACTER*1; it specifies the form of the system of equations:
    • = 'N': A *x = b
    • = 'T': A'*x = b, where A' is the transpose of A
    • = 'C': A'*x = b, where A' is the transpose of A
  • M β€” M is INTEGER: the number of rows of the matrix A. M >= 0. πŸ“
  • N β€” N is INTEGER: the number of columns of the matrix A. N >= 0. πŸ“
  • NRHS β€” NRHS is INTEGER: the number of columns of B, the matrix of right hand sides. NRHS >= 0. 🫢
  • A β€” A is REAL array, dimension (LDA,N): the original M x N matrix A. πŸ’œ
  • LDA β€” LDA is INTEGER: the leading dimension of the array A. LDA >= max(1,M). 🌸
  • X β€” X is REAL 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. If TRANS = 'N', LDX >= max(1,N); if TRANS = 'T' or 'C', LDX >= max(1,M). πŸ¦‹
  • 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 - A*X. important, bestie! πŸ’€
  • LDB β€” LDB is 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 β€” RWORK is REAL array, dimension (M). 🧚
  • RESID β€” RESID is REAL: the maximum over the number of right hand sides of norm(B - A*X) / ( max(m,n) * norm(A) * norm(X) * EPS ). πŸ”₯

Author πŸ‘‘

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

Definition at line 131 of file sqrt16.f.

Author πŸ’œ

Generated automatically by Doxygen for LAPACK from the source code.


kisses bestie, this page is from LAPACK Version 3.12.0, source TESTING/LIN/sqrt16.f(3) πŸ’‹βœ¨ πŸŽ€

πŸ“¦ where this page comes from