ZPOT02(3)
π ZPOT02(3) β bestie edition
okay so this is a page from the Library Functions Manual (the LAPACK one, yeah that LAPACK), and it's all about a lil Fortran subroutine called ZPOT02. it lives at this absolute unit of a path, no cap:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/zpot02.f
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/zpot02.f
like. that's the whole name. it's giving "i am the file and the file is me." iconic behavior honestly π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine ZPOT02 (uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
ZPOT02 β that's her. that's the girl. π
πΈ Function/Subroutine Documentation πΈ
subroutine ZPOT02 (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)
ZPOT02 β yes she's back, we love a repeat appearance π
π§ Purpose π§
okay so here's the whole point of her existence, and it's literally written in the source as a doc comment:
!>
!> ZPOT02 computes the residual for the solution of a Hermitian system
!> of linear equations A*x = b:
!>
!> RESID = norm(B - A*X) / ( norm(A) * norm(X) * EPS ),
!>
!> where EPS is the machine epsilon.
!>
so she computes the residual for the solution of a Hermitian system of linear equations A*x = b, and the formula is right there β. EPS is the machine epsilon, periodt. π₯
π Parameters π
every single one, in order, nothing skipped, we do NOT leave the girlies out:
UPLOβUPLO is CHARACTER*1. specifies whether the upper or lower triangular part of the Hermitian matrixAis stored:= 'U': Upper triangular= 'L': Lower triangular
NβN is INTEGER. the number of rows and columns of the matrixA.N >= 0.NRHSβNRHS is INTEGER. the number of columns ofB, the matrix of right hand sides.NRHS >= 0.AβA is COMPLEX*16 array, dimension (LDA,N). the original Hermitian matrixA. π«ΆLDAβLDA is INTEGER. the leading dimension of the arrayA.LDA >= max(1,N)XβX is COMPLEX*16 array, dimension (LDX,NRHS). the computed solution vectors for the system of linear equations. main character energy fr fr.LDXβLDX is INTEGER. the leading dimension of the arrayX.LDX >= max(1,N).BβB is COMPLEX*16 array, dimension (LDB,NRHS). π listen:- On entry, the right hand side vectors for the system of linear equations.
- On exit,
Bis overwritten with the differenceB - A*X. (she's not a storage girlie, she replaces.)
LDBβLDB is INTEGER. the leading dimension of the arrayB.LDB >= max(1,N).RWORKβRWORK is DOUBLE PRECISION array, dimension (N)RESIDβRESID is DOUBLE PRECISION. the maximum over the number of right hand sides ofnorm(B - A*X) / ( norm(A) * norm(X) * EPS ). π she's the final boss of the whole routine honestly.
π Author π
the credit roll, respect to everyone here:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 125 of file zpot02.f. β
π Author (again, but the meta one) π
Generated automatically by Doxygen for LAPACK from the source code. π so nobody hand-wrote this page, a robot did, and we thank her for her service.
that's the whole thing bestie, you ate. go forth and compute residuals π
LAPACK β Version 3.12.0 Β· /home/abui...IN/zpot02.f(3) Β· mwah, see u in the next manpage π
β¨π¦
π¦ 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