tprfs(3)
π tprfs(3) β triangular iterative refinement π
πΈ NAME πΈ
tprfs β tprfs: triangular iterative refinement
β¨ SYNOPSIS β¨
π Functions π
ctprfsβ CTPRFSdtprfsβ DTPRFSstprfsβ STPRFSztprfsβ ZTPRFS
subroutine ctprfs (uplo, trans, diag, n, nrhs, ap, b, ldb, x, ldx, ferr, berr, work, rwork, info)
subroutine dtprfs (uplo, trans, diag, n, nrhs, ap, b, ldb, x, ldx, ferr, berr, work, iwork, info)
subroutine stprfs (uplo, trans, diag, n, nrhs, ap, b, ldb, x, ldx, ferr, berr, work, iwork, info)
subroutine ztprfs (uplo, trans, diag, n, nrhs, ap, b, ldb, x, ldx, ferr, berr, work, rwork, info)
π¦ Detailed Description π¦
Okay bestie, this is the detailed-description zone, and the actual function docs are right below. Letβs get into it. π
π Function Documentation π
π subroutine ctprfs π
subroutine ctprfs (character uplo, character trans, character diag, integer n, integer nrhs, complex, dimension( * ) ap, 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)
CTPRFS
β¨ Purpose β¨
Okay so CTPRFS provides error bounds and backward error estimates for the solution to a system of linear equations with a triangular packed coefficient matrix. π
The solution matrix X must be computed by CTPTRS or some other means before entering this routine. No cap, CTPRFS does not do iterative refinement, because doing so cannot improve the backward error. Periodt. π
πΈ Parameters πΈ
UPLOβUPLO is CHARACTER*1= 'U':Ais upper triangular;= 'L':Ais lower triangular.
TRANSβTRANS is CHARACTER*1. Specifies the form of the system of equations:= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate transpose)
DIAGβDIAG is CHARACTER*1= 'N':Ais non-unit triangular;= 'U':Ais unit triangular.
NβN is INTEGER. The order of the matrixA.N >= 0.NRHSβNRHS is INTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.APβAP is COMPLEX array, dimension (N*(N+1)/2). The upper or lower triangular matrixA, 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)*(2n-j)/2) = A(i,j)forj<=i<=n.
- if
If DIAG = 'U', the diagonal elements of A are not referenced and are assumed to be 1.
BβB is COMPLEX array, dimension (LDB,NRHS). The right hand side matrixB.LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβX is COMPLEX array, dimension (LDX,NRHS). The solution matrixX.LDXβLDX is INTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβFERR is REAL array, dimension (NRHS). The estimated forward error bound for each solution vectorX(j)(thej-th column of the solution matrixX). 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 REAL array, dimension (NRHS). The componentwise relative backward error of each solution vectorX(j)(i.e., the smallest relative change in any element ofAorBthat makesX(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, thei-th argument had an illegal value
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 172 of file ctprfs.f.
π subroutine dtprfs π
subroutine dtprfs (character uplo, character trans, character diag, integer n, integer nrhs, double precision, dimension( * ) ap, double precision, dimension( ldb, * ) b, integer ldb, double precision, dimension( ldx, * ) x, integer ldx, double precision, dimension( * ) ferr, double precision, dimension( * ) berr, double precision, dimension( * ) work, integer, dimension( * ) iwork, integer info)
DTPRFS
β¨ Purpose β¨
Bestie, DTPRFS provides error bounds and backward error estimates for the solution to a system of linear equations with a triangular packed coefficient matrix. π
The solution matrix X must be computed by DTPTRS or some other means before entering this routine. And fr fr, DTPRFS does not do iterative refinement because doing so cannot improve the backward error. Thatβs just the vibe. π«Ά
πΈ Parameters πΈ
UPLOβUPLO is CHARACTER*1= 'U':Ais upper triangular;= 'L':Ais lower triangular.
TRANSβTRANS is CHARACTER*1. Specifies the form of the system of equations:= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate transpose = Transpose)
DIAGβDIAG is CHARACTER*1= 'N':Ais non-unit triangular;= 'U':Ais unit triangular.
NβN is INTEGER. The order of the matrixA.N >= 0.NRHSβNRHS is INTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.APβAP is DOUBLE PRECISION array, dimension (N*(N+1)/2). The upper or lower triangular matrixA, 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.
- if
If DIAG = 'U', the diagonal elements of A are not referenced and are assumed to be 1.
BβB is DOUBLE PRECISION array, dimension (LDB,NRHS). The right hand side matrixB.LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβX is DOUBLE PRECISION array, dimension (LDX,NRHS). The solution matrixX.LDXβLDX is INTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβFERR is DOUBLE PRECISION array, dimension (NRHS). The estimated forward error bound for each solution vectorX(j)(thej-th column of the solution matrixX). 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 ofAorBthat makesX(j)an exact solution).WORKβWORK is DOUBLE PRECISION array, dimension (3*N).IWORKβIWORK is INTEGER array, dimension (N).INFOβINFO is INTEGER= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 173 of file dtprfs.f.
π§ subroutine stprfs π§
subroutine stprfs (character uplo, character trans, character diag, integer n, integer nrhs, real, dimension( * ) ap, real, dimension( ldb, * ) b, integer ldb, real, dimension( ldx, * ) x, integer ldx, real, dimension( * ) ferr, real, dimension( * ) berr, real, dimension( * ) work, integer, dimension( * ) iwork, integer info)
STPRFS
β¨ Purpose β¨
Okay so STPRFS provides error bounds and backward error estimates for the solution to a system of linear equations with a triangular packed coefficient matrix. π
The solution matrix X must be computed by STPTRS or some other means before entering this routine. Highkey important: STPRFS does not do iterative refinement, because doing so cannot improve the backward error. Periodt. π
πΈ Parameters πΈ
UPLOβUPLO is CHARACTER*1= 'U':Ais upper triangular;= 'L':Ais lower triangular.
TRANSβTRANS is CHARACTER*1. Specifies the form of the system of equations:= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate transpose = Transpose)
DIAGβDIAG is CHARACTER*1= 'N':Ais non-unit triangular;= 'U':Ais unit triangular.
NNβN is INTEGER, and itβs the order of the matrix A. Constraint:N >= 0. πNRHSβNRHS is INTEGER, aka the number of right hand sides, i.e. the number of columns of the matricesBandX. Constraint:NRHS >= 0. β¨APβAP is REAL array, dimension (N*(N+1)/2). Itβs the upper or lower triangular matrixA, packed columnwise in a linear array. Thej-th column ofAlives inAPlike 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 DIAG = 'U', the diagonal elements of A are not referenced and are assumed to be 1. π«Ά
BβB is REAL array, dimension (LDB,NRHS). This is the right hand side matrixB. πΈLDBβLDB is INTEGER, the leading dimension of the arrayB. Constraint:LDB >= max(1,N). πXβX is REAL array, dimension (LDX,NRHS). This is the solution matrixX. π¦LDXβLDX is INTEGER, the leading dimension of the arrayX. Constraint:LDX >= max(1,N). βFERRβFERR is REAL array, dimension (NRHS). Itβs the estimated forward error bound for each solution vectorX(j)(thej-th column of the solution matrixX). IfXTRUEis the true solution corresponding toX(j), thenFERR(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 REAL array, dimension (NRHS). This is the componentwise relative backward error of each solution vectorX(j)β i.e. the smallest relative change in any element ofAorBthat makesX(j)an exact solution. π₯WORKβWORK is REAL array, dimension (3*N). πIWORKβIWORK is INTEGER array, dimension (N). πINFOβINFO is INTEGER:
= 0: successful exit
< 0: if INFO = -i, the i-th argument had an illegal value
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition: at line 173 of file stprfs.f. π
π¦ subroutine ztprfs β a.k.a. ZTPRFS
subroutine ztprfs (character uplo, character trans, character diag, integer
n, integer nrhs, complex*16, dimension( * ) ap, 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)
ZTPRFS
π― Purpose
ZTPRFS provides error bounds and backward error estimates for the solution to a system of linear equations with a triangular packed coefficient matrix. No cap. π
The solution matrix X must be computed by ZTPTRS or some other means before entering this routine. ZTPRFS does not do iterative refinement because doing so cannot improve the backward error. Periodt. π
πΈ Parameters
UPLOβUPLO is CHARACTER*1:= 'U': A is upper triangular;= 'L': A is lower triangular.
TRANSβTRANS is CHARACTER*1, specifying the form of the system of equations:= 'N': A * X = B (No transpose)= 'T': A**T * X = B (Transpose)= 'C': A**H * X = B (Conjugate transpose)
DIAGβDIAG is CHARACTER*1:= 'N': A is non-unit triangular;= 'U': A is unit triangular.
NβN is INTEGER, the order of the matrix A. Constraint:N >= 0. β¨NRHSβNRHS is INTEGER, the number of right hand sides, i.e. the number of columns of the matricesBandX. Constraint:NRHS >= 0. πAPβAP is COMPLEX*16 array, dimension (N*(N+1)/2). Itβs the upper or lower triangular matrixA, 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) for 1<=i<=j;
if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.
If DIAG = 'U', the diagonal elements of A are not referenced and are assumed to be 1. π«Ά
BβB is COMPLEX*16 array, dimension (LDB,NRHS). This is the right hand side matrixB. π¦LDBβLDB is INTEGER, the leading dimension of the arrayB. Constraint:LDB >= max(1,N). πXβX is COMPLEX*16 array, dimension (LDX,NRHS). This is the solution matrixX. πΈLDXβLDX is INTEGER, the leading dimension of the arrayX. Constraint:LDX >= max(1,N). βFERRβFERR is DOUBLE PRECISION array, dimension (NRHS). Itβs the estimated forward error bound for each solution vectorX(j)(thej-th column of the solution matrixX). IfXTRUEis the true solution corresponding toX(j), thenFERR(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). This is the componentwise relative backward error of each solution vectorX(j)β i.e. the smallest relative change in any element ofAorBthat 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
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition: at line 172 of file ztprfs.f. π
π€ Author
Generated automatically by Doxygen for LAPACK from the source code. π§
Cute sign-off time: this footer gives us LAPACK Version 3.12.0 and tprfs(3), auto-generated by Doxygen for LAPACK from the source code. No date on this footer, so Iβm not inventing one β just sending you off with all the vibes and zero missing flags. π«Άπβ¨
π¦ 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