SPBT02(3)
π SPBT02(3) β like, the manual page, bestie
okay so real quick: this is a page from the Library Functions Manual, and the star of the show is spbt02.f(3) β yes the whole path situation is a lot, we'll get to it. buckle up π
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/spbt02.f
like... that's the name. that's literally the whole name. it's giving "my full legal name on a government form" energy π but slay, we respect it.
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine SPBT02 (uplo, n, kd, nrhs, a, lda, x, ldx, b, ldb, rwork,
resid)
SPBT02 β that's her. that's the subroutine. π
πΈ Function/Subroutine Documentation πΈ
subroutine SPBT02 (character uplo, integer n, integer kd, 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)
SPBT02 β okay so here's the full glow-up, every single argument typed out exactly, no cap. π
π― Purpose π―
!> !> SPBT02 computes the residual for a solution of a symmetric banded !> system of equations A*x = b: !> RESID = norm( B - A*X ) / ( norm(A) * norm(X) * EPS) !> where EPS is the machine precision. !>
so basically she checks your work. you solved A*x = b, and she's like "bestie... let me verify that real quick" and hands you back RESID = norm( B - A*X ) / ( norm(A) * norm(X) * EPS), where EPS is the machine precision. a whole vibe check for your linear algebra. π
π§ Parameters π§
okay so these are the arguments, one by one, each one more iconic than the last:
UPLOβ it'sCHARACTER*1, and it says which triangle of the symmetric matrixAwe're storing:= 'U':upper triangular,= 'L':lower triangular. pick a side, king. πNβINTEGER, the number of rows and columns of the matrixA.N >= 0. no negatives, we don't do that here.KDβINTEGER, the number of super-diagonals ofAifUPLO = 'U', or the number of sub-diagonals ifUPLO = 'L'.KD >= 0. she's the band width, the moment, the range. πNRHSβINTEGER, the number of right hand sides.NRHS >= 0. plural queens rise up.AβREALarray, dimension(LDA,N). this is the original symmetric band matrixA. ifUPLO = 'U', the upper triangular part ofAis stored as a band matrix; ifUPLO = 'L', the lower triangular part ofAis stored. the columns of the appropriate triangle are stored in the columns ofAand the diagonals of the triangle are stored in the rows ofA. seeSPBTRFfor further details β she's the reference, iykyk. πLDAβINTEGER.the leading dimension of the arrayA.LDA >= max(1,KD+1). respect the leading dimension fr fr.XβREALarray, dimension(LDX,NRHS). the computed solution vectors for the system of linear equations. this is your answer, main character energy. πLDXβINTEGER, the leading dimension of the arrayX.LDX >= max(1,N).BβREALarray, 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 does NOT come back the same, bestie β that array is getting rewritten whether you like it or not.LDBβINTEGER, the leading dimension of the arrayB.LDB >= max(1,N).RWORKβREALarray, dimension(N). that's it. that's the whole description. she's a mystery but we love her. π«ΆRESIDβREAL. the maximum over the number of right hand sides ofnorm(B - A*X) / ( norm(A) * norm(X) * EPS ). the final verdict. the score. the moment of truth. β
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad, honestly. π
Definition at line 134 of file spbt02.f. β go look, she's right there. π₯
πΊ Author (again, but different) πΊ
Generated automatically by Doxygen for LAPACK from the source code. so like... a robot wrote this page. and now i'm rewriting the robot's page. we're all just doing our part. π¦
π quick reminder: nothing here changed, every flag, bound, dimension and overwrite notice is exactly as written β i just made it fun.
and that's the page!! LAPACK, Version 3.12.0, dated /home/abui...IN/spbt02.f(3) β mwah, sending you off with a kiss, go solve your symmetric banded system responsibly π
β¨π
π¦ 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