SRC/zhprfs.f(3)
๐ SRC/zhprfs.f ๐
okay bestie, this is the Library Functions Manual entry for SRC/zhprfs.f(3), and it's giving very-coded Hermitian linear algebra, no cap. ๐
โจ NAME โจ
SRC/zhprfs.fโ that's the file, periodt. ๐
๐ฆ SYNOPSIS ๐ฆ
Functions/Subroutines
subroutine zhprfs (uplo, n, nrhs, ap, afp, ipiv, b, ldb, x, ldx, ferr,
berr, work, rwork, info)
ZHPRFS โ our main character routine. ๐
๐ธ Function/Subroutine Documentation ๐ธ
subroutine zhprfs (character uplo, integer n, integer nrhs, complex*16,
dimension( * ) ap, complex*16, dimension( * ) afp, integer, dimension( *
) ipiv, complex*16, dimension( ldb, * ) b, integer ldb, complex*16,
dimension( ldx, * ) x, integer ldx, double precision, dimension( * )
ferr, double precision, dimension( * ) berr, complex*16, dimension( * )
work, double precision, dimension( * ) rwork, integer info)
ZHPRFS ๐
๐ฏ Purpose
okay so ZHPRFS improves the computed solution to a system of linear equations when the coefficient matrix is Hermitian indefinite and packed, and provides error bounds and backward error estimates for the solution. it's literally that girl. โจ
๐งฎ Parameters
UPLOโUPLO is CHARACTER*1. it tells us which triangle we're in, bestie:= '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*16 array, dimension (N*(N+1)/2). it's 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 like this:- if
UPLO = 'U',AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j; - if
UPLO = 'L',AP(i + (j-1)*(2*n-j)/2) = A(i,j) for j<=i<=n.
- if
AFPโAFP is COMPLEX*16 array, dimension (N*(N+1)/2). this is the factored form of matrix A.AFPcontains the block diagonal matrix D and the multipliers used to obtain the factor U or L from the factorizationA = U*D*U**HorA = L*D*L**Has computed byZHPTRF, stored as a packed triangular matrix. ๐งIPIVโIPIV is INTEGER array, dimension (N). details of the interchanges and the block structure of D as determined byZHPTRF. ๐BโB is COMPLEX*16 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*16 array, dimension (LDX,NRHS). on entry, the solution matrix X, as computed byZHPTRS. 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 DOUBLE PRECISION array, dimension (NRHS). the estimated forward error bound for each solution vectorX(j)(the j-th column of the solution matrix X). ifXTRUEis 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. ๐ญBERRโBERR is DOUBLE PRECISION array, dimension (NRHS). the componentwise relative backward error of each solution vectorX(j)(i.e., the smallest relative change in any element of A or B that makesX(j)an exact solution). ๐WORKโWORK is COMPLEX*16 array, dimension (2*N). ๐RWORKโRWORK is DOUBLE PRECISION array, dimension (N). ๐งINFOโINFO is INTEGER:= 0: successful exit< 0: if INFO = -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 178 of file zhprfs.f. ๐ซถ
๐ Author
Generated automatically by Doxygen for LAPACK from the source code.
mwah ๐ โ LAPACK Version 3.12.0, source SRC/zhprfs.f(3) ๐ซถโจ
๐ฆ 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