TESTING/LIN/cpot02.f(3)
πΈ NAME πΈ
TESTING/LIN/cpot02.f β okay so this is the LAPACK Library Functions Manual page for the cpot02 routine, and it's literally the residual-checking bestie for a Hermitian linear system. π
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine cpot02 (uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)βCPOT02
π Function/Subroutine Documentation π
subroutine cpot02 (character uplo, integer n, integer nrhs, complex,
dimension( lda, * ) a, integer lda, complex, dimension( ldx, * ) x,
integer ldx, complex, dimension( ldb, * ) b, integer ldb, real,
dimension( * ) rwork, real resid)
CPOT02
π¦ Purpose π¦
Okay so CPOT02 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. Slay. β¨
πΈ Parameters πΈ
UPLOβUPLOisCHARACTER*1. It specifies whether the upper or lower triangular part of the Hermitian matrixAis stored:'U'= upper triangular,'L'= lower triangular. πNβNisINTEGER. The number of rows and columns of the matrixA.N >= 0.NRHSβNRHSisINTEGER. The number of columns ofB, the matrix of right hand sides.NRHS >= 0.AβAisCOMPLEX array, dimension (LDA,N). The original Hermitian matrixA.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).XβXisCOMPLEX array, dimension (LDX,NRHS). The computed solution vectors for the system of linear equations.LDXβLDXisINTEGER. The leading dimension of the arrayX.LDX >= max(1,N).BβBisCOMPLEX 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. Not me gasping at an overwrite π.LDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).RWORKβRWORKisREAL array, dimension (N).RESIDβRESIDisREAL. 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 cpot02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
π That's the whole page, bestie β LAPACK, Version 3.12.0, TESTING/LIN/cpot02.f(3). Byeee β¨π¦
π¦ 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