TESTING/LIN/sqrt16.f(3)
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 matrixA.M >= 0. πNβN is INTEGER: the number of columns of the matrixA.N >= 0. πNRHSβNRHS is INTEGER: the number of columns ofB, the matrix of right hand sides.NRHS >= 0. π«ΆAβA is REAL array, dimension (LDA,N): the originalM x NmatrixA. πLDAβLDA is INTEGER: the leading dimension of the arrayA.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 arrayX. IfTRANS = 'N',LDX >= max(1,N); ifTRANS = '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,Bis overwritten with the differenceB - A*X. important, bestie! πLDBβLDB is INTEGER: the leading dimension of the arrayB. IFTRANS = 'N',LDB >= max(1,M); ifTRANS = '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 ofnorm(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
- 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