TESTING/LIN/dqrt16.f(3)
π TESTING/LIN/dqrt16.f(3) β from the Library Functions Manual bestie β¨
okay so real talk, this is TESTING/LIN/dqrt16.f, and it's literally the girl who checks your homework for you. she doesn't solve the linear system, she just comes in after and goes "mm, how wrong are you tho?" π
πΈ NAME πΈ
TESTING/LIN/dqrt16.f β the residual-checker icon herself, no cap π
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines π¦
subroutine dqrt16 (trans, m, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
DQRT16 π (yes she's got a name and yes she's that girl)
π Function/Subroutine Documentation π
subroutine dqrt16 (character trans, integer m, integer n, integer nrhs,
double precision, dimension( lda, * ) a, integer lda, double precision,
dimension( ldx, * ) x, integer ldx, double precision, dimension( ldb, *
) b, integer ldb, double precision, dimension( * ) rwork, double
precision resid)
DQRT16 π«Ά
π Purpose π
!> DQRT16 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 basically she computes the residual for a solution of a linear system, A*x = b or A'*x = b, and the formula is exactly:
RESID = norm(B - A*X) / ( max(m,n) * norm(A) * norm(X) * EPS )
where EPS is the machine epsilon. the vibe check, mathematically π
πΌ Parameters πΌ
TRANSβTRANSisCHARACTER*1, and she specifies the form of the system of equations, like:= 'N':A *x = b= 'T':A'*x = b, whereA'is the transpose ofA= 'C':A'*x = b, whereA'is the transpose ofA
MβMisINTEGER, the number of rows of the matrixA. constraint era:M >= 0π«‘NβNisINTEGER, the number of columns of the matrixA. alsoN >= 0, we stay valid β¨NRHSβNRHSisINTEGER, the number of columns ofB, the matrix of right hand sides.NRHS >= 0obvi πAβAisDOUBLE PRECISION array, dimension (LDA,N), and it's the originalM x NmatrixA. the source material, the blueprint πLDAβLDAisINTEGER, the leading dimension of the arrayA. requirement:LDA >= max(1,M)β don't play with her π¨XβXisDOUBLE PRECISION array, dimension (LDX,NRHS), the computed solution vectors for the system of linear equations. the attempt πLDXβLDXisINTEGER, the leading dimension of the arrayX. and listen: ifTRANS = 'N', thenLDX >= max(1,N); ifTRANS = 'T'or'C', thenLDX >= max(1,M). know the difference bestie πBβBisDOUBLE PRECISION 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π«Ά (she leaves a little note behind, iconic)LDBβLDBisINTEGER, the leading dimension of the arrayB. ifTRANS = 'N', thenLDB >= max(1,M); ifTRANS = 'T'or'C', thenLDB >= max(1,N)πRWORKβRWORKisDOUBLE PRECISION array, dimension (M)β that's it, that's the whole description, she's lowkey mysterious like that π¦RESIDβRESIDisDOUBLE PRECISION, the maximum over the number of right hand sides ofnorm(B - A*X) / ( max(m,n) * norm(A) * norm(X) * EPS ). the final grade, the report card, the moment of truth π₯
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 131 of file dqrt16.f. π
β Author (again, but make it Doxygen) β
Generated automatically by Doxygen for LAPACK from the source code. yeah she was born from a script, and she still ate π€π
okay that's the whole page bestie, every last flag and constraint, nothing skipped, periodt π
β¨ LAPACK β Version 3.12.0 β¨ β that's the source and version, and the page herself is TESTING/LIN/dqrt16.f(3). mwah, go check some residuals, ily ππ¦πΈ
π¦ 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