DGET08(3)
π DGET08(3) π
okay so this is the Library Functions Manual entry for DGET08, from that LAPACK source tree β you know the one, it lives at /home/abui...IN/dget08.f(3). welcome to the group chat, bestie π«Ά
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/dget08.f
that's it. that's the name. it's a whole path and honestly it's giving "my mom named me after the street she grew up on" π but we move.
π¦ SYNOPSIS π¦
Functions/Subroutines πΈ
subroutine DGET08 (trans, m, n, nrhs, a, lda, x, ldx, b, ldb, rwork,
resid)
DGET08
π Function/Subroutine Documentation π
π subroutine DGET08 π
subroutine DGET08 (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)
DGET08
π Purpose: π
!>!> DGET08 computes the residual for a solution of a system of linear!> equations A*x = b or A'*x = b:!> RESID = norm(B - A*X,inf) / ( norm(A,inf) * norm(X,inf) * EPS ),!> where EPS is the machine epsilon.!>
like, it's a vibe check for your linear solver. it looks at how far off B - A*X is and normalizes it by norm(A,inf), norm(X,inf) and EPS. iconic behavior ngl β¨
π Parameters π
TRANSβTRANS is CHARACTER*1, no cap. 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. simple as that, bestie πNβN is INTEGER. the number of columns of the matrixA.N >= 0. slay.NRHSβNRHS is INTEGER. the number of columns ofB, the matrix of right hand sides.NRHS >= 0. three non-negativity constraints in a row, we love a consistent queen πAβA is DOUBLE PRECISION array, dimension (LDA,N). the originalM x NmatrixA. the main character, literally.LDAβLDA is INTEGER. the leading dimension of the arrayA.LDA >= max(1,M). respect the constraint or suffer πXβX is DOUBLE PRECISION array, dimension (LDX,NRHS). the computed solution vectors for the system of linear equations. the whole reason we're here fr fr.LDXβLDX is INTEGER. the leading dimension of the arrayX. it's conditional, keep up: ifTRANS = 'N',LDX >= max(1,N); ifTRANS = 'T'or'C',LDX >= max(1,M). conditional logic, we stay flexible πBβB is DOUBLE 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. so yeah, she gets wrecked on the way out β do NOT expect your originalBto still be there ππLDBβLDB is INTEGER. the leading dimension of the arrayB. watch the caps and the conditionals:IF TRANS = 'N', LDB >= max(1,M); ifTRANS = 'T'or'C',LDB >= max(1,N). note it flips compared toLDX, iykyk.RWORKβRWORK is DOUBLE PRECISION array, dimension (M). that's it. that's the whole description. it's a workspace, she works, we respect her privacy π§RESIDβRESID is DOUBLE PRECISION. the maximum over the number of right hand sides ofnorm(B - A*X) / ( norm(A) * norm(X) * EPS ). the final girl. the number you actually came for. the grade. the vibe check result β
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
take a bow, legends π«Ά
πΈ Definition at line 131 of file dget08.f. πΈ
π Author π
Generated automatically by Doxygen for LAPACK from the source code. not a human, not a bestie, just a little robot doing her best π€β¨
and that's the whole thing, bestie β LAPACK, Version 3.12.0, straight outta /home/abui...IN/dget08.f(3). go compute some residuals and text me when you're done πππ¦
π¦ 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