DGBT02(3)
π dgbt02.f β NAME π
okay bestie, so this page is from the Library Functions Manual and it's all about /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/dgbt02.f β yes, that whole entire path, we're not shortening it, that's her full government name π
β¨ SYNOPSIS β¨
Functions/Subroutines
lowkey the main character:
subroutine DGBT02 (trans, m, n, kl, ku, nrhs, a, lda, x, ldx, b, ldb,
rwork, resid)
and yeah, she's literally called DGBT02 π«Ά
π Function/Subroutine Documentation π
here's the full glow-up of the signature, no details skipped, periodt:
subroutine DGBT02 (character trans, integer m, integer n, integer kl,
integer ku, 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)
DGBT02 β she's iconic, she's a subroutine, she does the math π
πΈ Purpose πΈ
!> DGBT02 computes the residual for a solution of a banded system of !> equations op(A)*X = B: !> RESID = norm(B - op(A)*X) / ( norm(op(A)) * norm(X) * EPS ), !> where op(A) = A or A**T, depending on TRANS, and EPS is the !> machine epsilon. !> The norm used is the 1-norm. !>
so basically she's checking how good your solution actually is β computing that residual, with op(A) = A or op(A) = A**T depending on TRANS, EPS being the machine epsilon, and the norm being the 1-norm. no cap, that's the whole vibe check π₯
π Parameters π
TRANSβTRANSisCHARACTER*1, and she specifies the form of the system of equations:= 'N': A * X = B (No transpose)= 'T': A**T * X = B (Transpose)= 'C': A**H * X = B (Conjugate transpose = Transpose)
MβMisINTEGER, the number of rows of the matrixA.M >= 0.NβNisINTEGER, the number of columns of the matrixA.N >= 0.KLβKLisINTEGER, the number of subdiagonals within the band ofA.KL >= 0.KUβKUisINTEGER, the number of superdiagonals within the band ofA.KU >= 0.NRHSβNRHSisINTEGER, the number of columns ofB.NRHS >= 0.AβAisDOUBLE PRECISIONarray, dimension(LDA,N), the original matrixAin band storage, stored in rows1toKL+KU+1.LDAβLDAisINTEGER, the leading dimension of the arrayA.LDA >= max(1,KL+KU+1).XβXisDOUBLE PRECISIONarray, dimension(LDX,NRHS), the computed solution vectors for the system of linear equations.LDXβLDXisINTEGER, the leading dimension of the arrayX. IfTRANS = 'N',LDX >= max(1,N); ifTRANS = 'T'or'C',LDX >= max(1,M).BβBisDOUBLE PRECISIONarray, 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.LDBβLDBisINTEGER, the leading dimension of the arrayB. IFTRANS = 'N',LDB >= max(1,M); ifTRANS = 'T'or'C',LDB >= max(1,N).RWORKβRWORKisDOUBLE PRECISIONarray, dimension(MAX(1,LRWORK)), whereLRWORK >= MwhenTRANS = 'T'or'C'; otherwise,RWORKis not referenced.RESIDβRESIDisDOUBLE PRECISION, the maximum over the number of right hand sides ofnorm(B - op(A)*X) / ( norm(op(A)) * norm(X) * EPS ).
bestie pls note:Bgets overwritten withB - A*Xon exit, andRWORKis literally not referenced unlessTRANS = 'T'or'C'π
π¦ Author π¦
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 147 of file dgbt02.f. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. she's a bot-written baddie, we respect it π
and that's the whole page, bestie β slay β¨ this was LAPACK Version 3.12.0, from /home/abui...IN/dgbt02.f(3), signing off ππ«Άπ
π¦ 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