DPOT06(3)
πΈ DPOT06(3) πΈ
okay so bestie, welcome to the Library Functions Manual entry for dpot06.f β yes that's a whole manual page for one little test subroutine, and honestly? she deserves it π
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/dpot06.f
that's it. that's the name. full path and everything, no cap π that's literally how this file identifies itself.
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine DPOT06 (uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)β DPOT06, bestie. it's her.
π Function/Subroutine Documentation π
subroutine DPOT06 (character uplo, 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)
DPOT06 π
Purpose:
!>
!> DPOT06 computes the residual for a solution of a system of linear
!> equations A*x = b :
!> RESID = norm(B - A*X,inf) / ( norm(A,inf) * norm(X,inf) * EPS ),
!> where EPS is the machine epsilon.
!>
so like β she's a residual checker. she takes how wrong your answer is, divides it by how big your matrix and your solution are, and then divides by machine epsilon so the number is normalized instead of being a tiny unreadable sliver. iconic behavior fr fr β¨
π Parameters π
UPLOβUPLO is CHARACTER*1, and she tells you whether the upper or lower triangular part of the symmetric matrixAis the one being stored:
= 'U': Upper triangular
= 'L': Lower triangular
pick one, bestie, she's not doing both πΈ
NβN is INTEGER. the number of rows and columns of the matrixA, so it's a square situation. constraint:N >= 0π«ΆNRHSβNRHS is INTEGER. the number of columns ofB, which is the matrix of right hand sides. constraint:NRHS >= 0βAβA is DOUBLE PRECISION array, dimension (LDA,N). the originalM x NmatrixA. yes the doc literally saysM x Neven though there's noManywhere else on this page β i don't make the rules, i just report them πLDAβLDA is INTEGER. the leading dimension of the arrayA. constraint:LDA >= max(1,N)πXβX is DOUBLE PRECISION array, dimension (LDX,NRHS). the computed solution vectors for the system of linear equations. i.e. the answer you're trying to check πLDXβLDX is INTEGER. the leading dimension of the arrayX. and here's the vibe check: ifTRANS = 'N',LDX >= max(1,N); ifTRANS = 'T'or'C',LDX >= max(1,N). yeah β it's the same condition either way, andTRANSisn't even a parameter of this routine. that's just how the doc is written. we love consistency-ish π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 if you needed your originalB, she's gone, hope you made a copy.LDBβLDB is INTEGER. the leading dimension of the arrayB. IFTRANS = 'N',LDB >= max(1,M); ifTRANS = 'T'or'C',LDB >= max(1,N). again with theTRANSand theMβ copied straight from the source doc, and againTRANSis not one of her arguments. iykyk πRWORKβRWORK is DOUBLE PRECISION array, dimension (N). workspace. no further comment. she's mysterious like that π§RESIDβRESID is DOUBLE PRECISION. the maximum over the number of right hand sides of:
norm(B - A*X) / ( norm(A) * norm(X) * EPS )
so she loops over every right hand side, computes that ratio, and hands you back the biggest one. one number to rule them all π₯
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
four whole institutions, and they all signed off on this. group project energy but make it prestigious π
β Definition at line 125 of file dpot06.f.
π« Author (the metadata one)
Generated automatically by Doxygen for LAPACK from the source code. so nobody wrote this page, a robot did, and honestly the robot ate π€β¨
heads up bestie: thoseTRANSandMreferences in theLDXandLDBdescriptions? they're in the original doc verbatim. i'm not inventing anything, i'm just holding the door open for you while you read them π
okay that's the whole page, mwah π this was LAPACK, Version 3.12.0, dated /home/abui...IN/dpot06.f(3) β and that's the sign-off, bestie, go check your residuals π«Άππ¦
π¦ 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