TESTING/LIN/zqrt16.f(3)
π TESTING/LIN/zqrt16.f π
okay bestie, buckle up β this one's a Fortran file living its best life in the LAPACK test suite (the manual name is literally TESTING/LIN/zqrt16.f, iykyk), and it's about to be your new fave π
β¨ NAME β¨
TESTING/LIN/zqrt16.f β that's the whole vibe, that's the name, periodt.
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine zqrt16 (trans, m, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)β the one and onlyZQRT16, our main character π
π¦ 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
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)
π Purpose: π
so here's the tea, bestie π΅ β 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. literally that's it, that's the whole job β¨
π Parameters π
TRANS
TRANSisCHARACTER*1- Specifies the form of the system of equations, no cap:
= 'N':A *x = b= 'T':A^T*x = b, whereA^Tis the transpose ofA= 'C':A^H*x = b, whereA^His the conjugate transpose ofA
M
MisINTEGER- The number of rows of the matrix
A.M >= 0. π«Ά
N
NisINTEGER- The number of columns of the matrix
A.N >= 0. π«Ά
NRHS
NRHSisINTEGER- The number of columns of
B, the matrix of right hand sides.NRHS >= 0. π
A
AisCOMPLEX*16array, dimension(LDA,N)- The original
M x NmatrixA. iconic behavior honestly π
LDA
LDAisINTEGER- The leading dimension of the array
A.LDA >= max(1,M). don't skip this, fr fr π
X
XisCOMPLEX*16array, dimension(LDX,NRHS)- The computed solution vectors for the system of linear equations. the moment of truth β¨
LDX
LDXisINTEGER- The leading dimension of the array
X. IfTRANS = 'N',LDX >= max(1,N); ifTRANS = 'T'or'C',LDX >= max(1,M). read it carefully bestie, it flips depending onTRANSπ
B
BisCOMPLEX*16array, 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. β οΈ heads up β the originalBdoes NOT survive, she gets replaced, no cap
LDB
LDBisINTEGER- The leading dimension of the array
B. IFTRANS = 'N',LDB >= max(1,M); ifTRANS = 'T'or'C',LDB >= max(1,N). same flip energy asLDX, keep up π§
RWORK
RWORKisDOUBLE PRECISIONarray, dimension(M)
RESID
RESIDisDOUBLE PRECISION- The maximum over the number of right hand sides of
norm(B - A*X) / ( max(m,n) * norm(A) * norm(X) * EPS ).
π Author π
the legends behind this:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 131 of file zqrt16.f. π
β Author (again, yes really) β
Generated automatically by Doxygen for LAPACK from the source code. not a human, just a very diligent little doc generator doing its thing π€π«
ok that's the whole page bestie, you ate that reading session, genuinely obsessed π«Ά
LAPACK π β Version 3.12.0 π β footer said TESTING/LIN/zqrt16.f(3) and honestly it deserved a cute lil sign-off: go forth and compute residuals, queen πβ¨
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms