SRC/chprfs.f(3)
πΈ NAME
Okay bestie, this is SRC/chprfs.f(3) from the Library Functions Manual β and it's all about the CHPRFS subroutine. Buckle up π
β¨ SYNOPSIS
Functions/Subroutines
subroutine chprfs (uplo, n, nrhs, ap, afp, ipiv, b, ldb, x, ldx, ferr, berr, work, rwork, info)β CHPRFS is here to improve your computed solution and hand you those error bounds, periodt π
subroutine chprfs (uplo, n, nrhs, ap, afp, ipiv, b, ldb, x, ldx, ferr,
berr, work, rwork, info)
π«Ά Function/Subroutine Documentation
subroutine chprfs (character uplo, integer n, integer nrhs, complex,
dimension( * ) ap, complex, dimension( * ) afp, integer, dimension( * )
ipiv, 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)
CHPRFS β yes queen, this is the one π
Purpose
CHPRFS improves the computed solution to a system of linear equations when the coefficient matrix is Hermitian indefinite and packed, and it provides error bounds and backward error estimates for the solution. It's giving solver-glow-up energy β¨
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.
- The order of the matrix
NRHSβNRHS is INTEGER- The number of right hand sides, i.e., the number of columns of the matrices
BandX.NRHS >= 0.
- The number of right hand sides, i.e., the number of columns of the matrices
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. Thej-th column ofAis stored in the arrayAPas follows: - if
UPLO = 'U',AP(i + (j-1)*j/2) = A(i,j)for1<=i<=j; - if
UPLO = 'L',AP(i + (j-1)*(2*n-j)/2) = A(i,j)forj<=i<=n.
- The upper or lower triangle of the Hermitian matrix
AFPβAFP is COMPLEX array, dimension (N*(N+1)/2)- The factored form of the matrix
A.AFPcontains the block diagonal matrixDand the multipliers used to obtain the factorUorLfrom the factorizationA = U*D*U**HorA = L*D*L**Has computed byCHPTRF, stored as a packed triangular matrix.
- The factored form of the matrix
IPIVβIPIV is INTEGER array, dimension (N)- Details of the interchanges and the block structure of
Das determined byCHPTRF.
- Details of the interchanges and the block structure of
BβB is COMPLEX array, dimension (LDB,NRHS)- The right hand side matrix
B.
- The right hand side matrix
LDBβLDB is INTEGER- The leading dimension of the array
B.LDB >= max(1,N).
- The leading dimension of the array
XβX is COMPLEX array, dimension (LDX,NRHS)- On entry, the solution matrix
X, as computed byCHPTRS. - On exit, the improved solution matrix
X.
- On entry, the solution matrix
LDXβLDX is INTEGER- The leading dimension of the array
X.LDX >= max(1,N).
- The leading dimension of the array
FERRβFERR is REAL array, dimension (NRHS)- The estimated forward error bound for each solution vector
X(j)(thej-th column of the solution matrixX). - If
XTRUEis the true solution corresponding toX(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 inX(j). The estimate is as reliable as the estimate forRCOND, and is almost always a slight overestimate of the true error.
- The estimated forward error bound for each solution vector
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 ofAorBthat makesX(j)an exact solution).
- The componentwise relative backward error of each solution vector
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, thei-th argument had an illegal value
Internal Parameters
ITMAX is the maximum number of steps of iterative refinement. That's the internal tea ββ¨
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 178 of file chprfs.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
Footer sign-off, with all the source/version energy: LAPACK, Version 3.12.0, SRC/chprfs.f(3) β and the footer didn't bring a date, so we're not inventing one, 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