ZQRT16(3)
π 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!>equationsA*x = borA'*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β isCHARACTER*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β isINTEGER, and it's the number of rows of the matrixA. constraint:M >= 0π«ΆNβ isINTEGER, the number of columns of the matrixA. constraint:N >= 0βNRHSβ isINTEGER, the number of columns ofB, the matrix of right hand sides. constraint:NRHS >= 0πAβ isCOMPLEX*16 array, dimension (LDA,N). it's the originalM x NmatrixA. iconic, honestly πLDAβ isINTEGER, the leading dimension of the arrayA. constraint:LDA >= max(1,M)β¨Xβ isCOMPLEX*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β isINTEGER, the leading dimension of the arrayX. and watch out, it's conditional: ifTRANS = 'N',LDX >= max(1,N); ifTRANS = 'T'or'C',LDX >= max(1,M)πBβ isCOMPLEX*16 array, dimension (LDB,NRHS). on entry, the right hand side vectors for the system of linear equations. on exit,Bis overwritten with the differenceB - 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β isINTEGER, the leading dimension of the arrayB. also conditional:IF TRANS = 'N',LDB >= max(1,M); ifTRANS = 'T'or'C',LDB >= max(1,N)π¦RWORKβ isDOUBLE PRECISION array, dimension (M)πΈRESIDβ isDOUBLE 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
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms