TESTING/LIN/zpot06.f(3)
π TESTING/LIN/zpot06.f(3) π
okay so this is the Library Functions Manual page for TESTING/LIN/zpot06.f, and bestie, itβs giving βFortran residual-checking subroutine that knows exactly what itβs doing.β Weβre talking about zpot06 β yes, the same energy as ZPOT06 β and Iβm gonna walk you through every flag, parameter, and tiny detail without dropping a single crumb. π«Άβ¨
β¨ NAME β¨
TESTING/LIN/zpot06.f β thatβs the file/page name, and the main character is the subroutine zpot06. No cap. π
π¦ SYNOPSIS π¦
π§ Functions/Subroutines π§
subroutine zpot06 (uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)β and the page literally labels itZPOT06. Iconic.
subroutine zpot06 (uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
πΈ Function/Subroutine Documentation πΈ
Hereβs the full signature in all its Fortran glory, exactly as written:
subroutine zpot06 (character uplo, integer n, integer nrhs, complex*16, dimension( lda, * ) a, integer lda, complex*16, dimension( ldx, * ) x, integer ldx, complex*16, dimension( ldb, * ) b, integer ldb, double precision, dimension( * ) rwork, double precision resid)
ZPOT06
π Purpose π
okay so the purpose: ZPOT06 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. Thatβs the whole vibe: itβs checking how close the computed solution is, mathematically speaking. π
π Parameters π
hereβs the cast, one by one, no skips:
UPLOβCHARACTER*1. Specifies whether the upper or lower triangular part of the symmetric matrixAis stored:= 'U': Upper triangular;= 'L': Lower triangular.NβINTEGER. The number of rows and columns of the matrixA.N >= 0.NRHSβINTEGER. The number of columns ofB, the matrix of right hand sides.NRHS >= 0.AβCOMPLEX*16array, dimension(LDA,N). The originalM x NmatrixA.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).XβCOMPLEX*16array, dimension(LDX,NRHS). The computed solution vectors for the system of linear equations.LDXβINTEGER. The leading dimension of the arrayX. IfTRANS = 'N',LDX >= max(1,N); ifTRANS = 'T'or'C',LDX >= max(1,N).BβCOMPLEX*16array, 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βINTEGER. The leading dimension of the arrayB.IF TRANS = 'N',LDB >= max(1,M); ifTRANS = 'T'or'C',LDB >= max(1,N).RWORKβDOUBLE PRECISIONarray, dimension(N).RESIDβDOUBLE PRECISION. The maximum over the number of right hand sides ofnorm(B - A*X) / ( norm(A) * norm(X) * EPS ).
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 125 of file zpot06.f.
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code.
and thatβs the page, bestie! π source/version tea: LAPACK Version 3.12.0, page path TESTING/LIN/zpot06.f(3). The original footer didnβt hand me a date, so Iβm not inventing one β just those exact receipts, periodt. ππ«Άβ¨
π¦ 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