SRC/cpprfs.f(3)
πΈ NAME πΈ
SRC/cpprfs.f β okay bestie, this is a page from the Library Functions Manual, and it's literally all about the cpprfs subroutine. π
β¨
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine cpprfs (uplo, n, nrhs, ap, afp, b, ldb, x, ldx, ferr, berr,
work, rwork, info)
CPPRFS
π¦ Function/Subroutine Documentation π¦
subroutine cpprfs (character uplo, integer n, integer nrhs, complex,
dimension( * ) ap, complex, dimension( * ) afp, complex, dimension( ldb,
* ) b, integer ldb, complex, dimension( ldx, * ) x, integer ldx, real,
dimension( * ) ferr, real, dimension( * ) berr, complex, dimension( * )
work, real, dimension( * ) rwork, integer info)
CPPRFS
π Purpose π
CPPRFS improves the computed solution to a system of linear equations when the coefficient matrix is Hermitian positive definite and packed, and it provides error bounds and backward error estimates for the solution. No cap, that's the whole glow-up. π
π Parameters π
UPLOβUPLO is CHARACTER*1;= 'U': upper triangle of A is stored;= 'L': lower triangle of A is stored.NβN is INTEGER; the order of the matrix A.N >= 0.NRHSβNRHS is INTEGER; the number of right hand sides, i.e., the number of columns of the matrices B and X.NRHS >= 0.APβAP is COMPLEX array, dimension (N*(N+1)/2); the upper or lower triangle of the Hermitian matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: ifUPLO = 'U',AP(i + (j-1)*j/2) = A(i,j)for1<=i<=j; ifUPLO = 'L',AP(i + (j-1)*(2n-j)/2) = A(i,j)forj<=i<=n.AFPβAFP is COMPLEX array, dimension (N*(N+1)/2); the triangular factor U or L from the Cholesky factorizationA = U**H*UorA = L*L**H, as computed bySPPTRF/CPPTRF, packed columnwise in a linear array in the same format as A (seeAP).BβB is COMPLEX array, dimension (LDB,NRHS); the right hand side matrix B.LDBβLDB is INTEGER; the leading dimension of the array B.LDB >= max(1,N).XβX is COMPLEX array, dimension (LDX,NRHS); on entry, the solution matrix X, as computed byCPPTRS; on exit, the improved solution matrix X.LDXβLDX is INTEGER; the leading dimension of the array X.LDX >= max(1,N).FERRβFERR is REAL array, dimension (NRHS); the estimated forward error bound for each solution vector X(j) (the j-th column of the solution matrix X). IfXTRUEis the true solution corresponding to X(j),FERR(j)is an estimated upper bound for the magnitude of the largest element in(X(j) - XTRUE)divided by the magnitude of the largest element in X(j). The estimate is as reliable as the estimate forRCOND, and is almost always a slight overestimate of the true error.BERRβBERR is REAL array, dimension (NRHS); the componentwise relative backward error of each solution vector X(j) (i.e., the smallest relative change in any element of A or B that makes X(j) an exact solution).WORKβWORK is COMPLEX array, dimension (2*N).RWORKβRWORK is REAL array, dimension (N).INFOβINFO is INTEGER;= 0: successful exit;< 0: ifINFO = -i, the i-th argument had an illegal value.
π§ Internal Parameters π§
ITMAX is the maximum number of steps of iterative refinement.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 169 of file cpprfs.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
π cute sign-off: from the Library Functions Manual, LAPACK Version 3.12.0, source SRC/cpprfs.f(3), generated by Doxygen. That's the footer vibe, bestie β mwah! πβ¨π«Ά
π¦ 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