ZQRT16(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’… ZQRT16(3) β€” like, the residual-checking queen of LAPACK

okay so bestie, welcome to section 3 of the manual, and the file we're stanning today is /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/zqrt16.f ✨ (the header on this page shows it all cozy as /home/abui...IN/zqrt16.f(3), but like, you get it πŸŽ€)


✨ SYNOPSIS ✨

Functions/Subroutines πŸ¦‹

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

like, that's it. that's the whole vibe. ZQRT16 πŸ’…


🌸 Function/Subroutine Documentation 🌸

subroutine ZQRT16 (character trans, integer m, 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)

ZQRT16 β€” say it with me πŸ‘‘ no cap, this subroutine is the whole main character.

🎯 Purpose 🎯

!> !> ZQRT16 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. so yeah β€” it's literally checking how good your solution actually is πŸ”₯ (and yes the !> marks are part of the source, we love a literal transcript bestie πŸ’–)

🧚 Parameters (the whole cast, nobody gets cut) 🧚

  • TRANS β€” is CHARACTER*1, and it tells us which flavor of system we're solving, like a little menu of vibes:
    • = 'N': A *x = b
    • = 'T': A^T*x = b, where A^T is the transpose of A
    • = 'C': A^H*x = b, where A^H is the conjugate transpose of A
  • M β€” is INTEGER, and it's the number of rows of the matrix A. constraint: M >= 0 🫢
  • N β€” is INTEGER, the number of columns of the matrix A. constraint: N >= 0 ⭐
  • NRHS β€” is INTEGER, the number of columns of B, the matrix of right hand sides. constraint: NRHS >= 0 πŸ’œ
  • A β€” is COMPLEX*16 array, dimension (LDA,N). it's the original M x N matrix A. iconic, honestly 🌈
  • LDA β€” is INTEGER, the leading dimension of the array A. constraint: LDA >= max(1,M) ✨
  • X β€” is COMPLEX*16 array, dimension (LDX,NRHS). these are the computed solution vectors for the system of linear equations, i.e. the girlies we're grading πŸ’…
  • LDX β€” is INTEGER, the leading dimension of the array X. and watch out, it's conditional: if TRANS = 'N', LDX >= max(1,N); if TRANS = 'T' or 'C', LDX >= max(1,M) πŸ™ˆ
  • B β€” is 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 β€” not me warning you that it gets rewritten 😭 that's a real side effect bestie, don't say I didn't tell you.
  • LDB β€” is INTEGER, the leading dimension of the array B. also conditional: IF TRANS = 'N', LDB >= max(1,M); if TRANS = 'T' or 'C', LDB >= max(1,N) πŸ¦‹
  • RWORK β€” is DOUBLE PRECISION array, dimension (M) 🌸
  • RESID β€” is DOUBLE PRECISION, and it's the maximum over the number of right hand sides of
norm(B - A*X) / ( max(m,n) * norm(A) * norm(X) * EPS ).

like, the final grade. the report card. periodt πŸ”₯


πŸ‘‘ Author πŸ‘‘

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

Definition at line 131 of file zqrt16.f. πŸŽ€ (yes it lives at line 131, note it and move on bestie)


⭐ Author (yes, again, it's a whole thing) ⭐

Generated automatically by Doxygen for LAPACK from the source code. β€” so nobody hand-wrote this beauty, the robots did it 🫢


k so that's the page, and before you go: this whole thing is LAPACK Version 3.12.0, and the footer sings it as /home/abui...IN/zqrt16.f(3) β€” ty for coming to my ted talk, mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from