pbrfs(3)
π pbrfs(3) β iterative refinement β¨
Okay bestie, this is the pbrfs(3) page from the Library Functions Manual, and the manual name is folded in right here so we're not copying that boring header line like a bot. It's giving βlinear algebra glow-upβ energy, and honestly? Obsessed. π«Ά
β¨ NAME β¨
pbrfs β pbrfs: iterative refinement. That's the name, that's the vibe. The manual name is pbrfs(3), and it lives in the Library Functions Manual, no cap. π
πΈ SYNOPSIS πΈ
Here's the function lineup exactly as written, bestie. Four routines, all doing that iterative-refinement thing:
π Functions π
subroutine cpbrfs (uplo, n, kd, nrhs, ab, ldab, afb, ldafb, b, ldb, x,
ldx, ferr, berr, work, rwork, info)
CPBRFS
subroutine dpbrfs (uplo, n, kd, nrhs, ab, ldab, afb, ldafb, b, ldb, x,
ldx, ferr, berr, work, iwork, info)
DPBRFS
subroutine spbrfs (uplo, n, kd, nrhs, ab, ldab, afb, ldafb, b, ldb, x,
ldx, ferr, berr, work, iwork, info)
SPBRFS
subroutine zpbrfs (uplo, n, kd, nrhs, ab, ldab, afb, ldafb, b, ldb, x,
ldx, ferr, berr, work, rwork, info)
ZPBRFS
π¦ Detailed Description π¦
There's no extra prose under this heading in the original β it's a quick pit stop before the function docs. Minimalist queen. π
π Function Documentation π
Okay, main character section. Each function gets the full treatment: purpose, parameters, internal parameters, author credits, and the source-file line. No skipping, no summary crimes. π
Tiny heads-up: the original sprinkles !> doc-comment markers through these blocks. I'm not making you read those little gremlins, but every actual parameter fact is still below. π«Ά
π§ cpbrfs β CPBRFS
subroutine cpbrfs (character uplo, integer n, integer kd, integer nrhs,
complex, dimension( ldab, * ) ab, integer ldab, complex, dimension(
ldafb, * ) afb, integer ldafb, 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)
CPBRFS β yes bestie, that's the label.
Purpose
CPBRFS improves the computed solution to a system of linear equations when the coefficient matrix is Hermitian positive definite and banded, and it provides error bounds and backward error estimates for the solution. It's literally the aftercare for your solve. π
Parameters
UPLOβCHARACTER*1.= 'U': upper triangle ofAis stored;= 'L': lower triangle ofAis stored.
NβINTEGER. The order of the matrixA.N >= 0.KDβINTEGER. The number of superdiagonals of the matrixAifUPLO = 'U', or the number of subdiagonals ifUPLO = 'L'.KD >= 0.NRHSβINTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.ABβCOMPLEX array, dimension (LDAB,N). The upper or lower triangle of the Hermitian band matrixA, stored in the firstKD+1rows of the array. Thej-th column ofAis stored in thej-th column of the arrayABas follows:- if
UPLO = 'U',AB(kd+1+i-j,j) = A(i,j)formax(1,j-kd)<=i<=j; - if
UPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+kd).
- if
LDABβINTEGER. The leading dimension of the arrayAB.LDAB >= KD+1.AFBβCOMPLEX array, dimension (LDAFB,N). The triangular factorUorLfrom the Cholesky factorizationA = U**H*UorA = L*L**Hof the band matrixAas computed byCPBTRF, in the same storage format asA(seeAB).LDAFBβINTEGER. The leading dimension of the arrayAFB.LDAFB >= KD+1.BβCOMPLEX array, dimension (LDB,NRHS). The right hand side matrixB.LDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβCOMPLEX array, dimension (LDX,NRHS). On entry, the solution matrixX, as computed byCPBTRS. On exit, the improved solution matrixX.LDXβINTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβ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β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βCOMPLEX array, dimension (2*N).RWORKβREAL array, dimension (N).INFOβ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 whole note. Periodt. π
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 187 of file cpbrfs.f.
π§ dpbrfs β DPBRFS
subroutine dpbrfs (character uplo, integer n, integer kd, integer nrhs,
double precision, dimension( ldab, * ) ab, integer ldab, double
precision, dimension( ldafb, * ) afb, integer ldafb, 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)
DPBRFS β label secured.
Purpose
DPBRFS improves the computed solution to a system of linear equations when the coefficient matrix is symmetric positive definite and banded, and it provides error bounds and backward error estimates for the solution. Same energy as cpbrfs, but double precision and symmetric instead of Hermitian. Slay. π₯
Parameters
UPLOβCHARACTER*1.= 'U': upper triangle ofAis stored;= 'L': lower triangle ofAis stored.
NβINTEGER. The order of the matrixA.N >= 0.KDβINTEGER. The number of superdiagonals of the matrixAifUPLO = 'U', or the number of subdiagonals ifUPLO = 'L'.KD >= 0.NRHSβINTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.ABβDOUBLE PRECISION array, dimension (LDAB,N). The upper or lower triangle of the symmetric band matrixA, stored in the firstKD+1rows of the array. Thej-th column ofAis stored in thej-th column of the arrayABas follows:- if
UPLO = 'U',AB(kd+1+i-j,j) = A(i,j)formax(1,j-kd)<=i<=j; - if
UPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+kd).
- if
LDABβINTEGER. The leading dimension of the arrayAB.LDAB >= KD+1.AFBβDOUBLE PRECISION array, dimension (LDAFB,N). The triangular factorUorLfrom the Cholesky factorizationA = U**T*UorA = L*L**Tof the band matrixAas computed byDPBTRF, in the same storage format asA(seeAB).LDAFBβINTEGER. The leading dimension of the arrayAFB.LDAFB >= KD+1.BβDOUBLE PRECISION array, dimension (LDB,NRHS). The right hand side matrixB.LDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβDOUBLE PRECISION array, dimension (LDX,NRHS). On entry, the solution matrixX, as computed byDPBTRS. On exit, the improved solution matrixX.LDXβINTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβ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β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βDOUBLE PRECISION array, dimension (3*N).IWORKβINTEGER array, dimension (N).INFOβ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. Same iconic note, no changes. π
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 187 of file dpbrfs.f.
π§ spbrfs β SPBRFS
subroutine spbrfs (character uplo, integer n, integer kd, integer nrhs,
real, dimension( ldab, * ) ab, integer ldab, real, dimension( ldafb, * )
afb, integer ldafb, 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)
SPBRFS β label present and accounted for.
Purpose
SPBRFS improves the computed solution to a system of linear equations when the coefficient matrix is symmetric positive definite and banded, and it provides error bounds and backward error estimates for the solution. Real precision, same βfix my solution and give me receiptsβ energy. π«Ά
Parameters
UPLOβ the page cuts off right here in part 1; part 2 picks up the rest of this parameter list, bestie. π
(part 2 slides in with the rest of UPLO and every remaining detail β no goodbye, just a cliffhanger. π
)
okay so we're still in the spbrfs parameter lineup, bestie β don't leave me hanging π«Ά
UPLOβCHARACTER*1. The vibe check for the triangle:= 'U': upper triangle ofAis stored;= 'L': lower triangle ofAis stored. πNβINTEGER. The order of the matrixA.N >= 0.KDβINTEGER. The number of superdiagonals of the matrixAifUPLO = 'U', or the number of subdiagonals ifUPLO = 'L'.KD >= 0.NRHSβINTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.ABβREAL array, dimension (LDAB,N). The upper or lower triangle of the symmetric band matrixA, stored in the firstKD+1rows of the array. The j-th column ofAis stored in the j-th column of the arrayABas follows: ifUPLO = 'U',AB(kd+1+i-j,j) = A(i,j)formax(1,j-kd)<=i<=j; ifUPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+kd). π¦LDABβINTEGER. The leading dimension of the arrayAB.LDAB >= KD+1.AFBβREAL array, dimension (LDAFB,N). The triangular factorUorLfrom the Cholesky factorizationA = U**T*UorA = L*L**Tof the band matrixAas computed bySPBTRF, in the same storage format asA(seeAB). β¨LDAFBβINTEGER. The leading dimension of the arrayAFB.LDAFB >= KD+1.BβREAL array, dimension (LDB,NRHS). The right hand side matrixB.LDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβREAL array, dimension (LDX,NRHS). On entry, the solution matrixX, as computed bySPBTRS. On exit, the improved solution matrixX.LDXβINTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβREAL array, dimension (NRHS). The estimated forward error bound for each solution vectorX(j)(the j-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β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βREAL array, dimension (3*N).IWORKβINTEGER array, dimension (N).INFOβ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 187 of file spbrfs.f.
π ZPBRFS β the COMPLEX*16 twin
subroutine zpbrfs (character uplo, integer n, integer kd, integer nrhs,
complex*16, dimension( ldab, * ) ab, integer ldab, complex*16,
dimension( ldafb, * ) afb, integer ldafb, 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)
ZPBRFS
πΈ Purpose
ZPBRFS improves the computed solution to a system of linear equations when the coefficient matrix is Hermitian positive definite and banded, and provides error bounds and backward error estimates for the solution. no cap, that's the whole glow-up π
π Parameters
UPLOβCHARACTER*1. The triangle situation:= 'U': upper triangle ofAis stored;= 'L': lower triangle ofAis stored. πNβINTEGER. The order of the matrixA.N >= 0.KDβINTEGER. The number of superdiagonals of the matrixAifUPLO = 'U', or the number of subdiagonals ifUPLO = 'L'.KD >= 0.NRHSβINTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.ABβCOMPLEX*16 array, dimension (LDAB,N). The upper or lower triangle of the Hermitian band matrixA, stored in the firstKD+1rows of the array. The j-th column ofAis stored in the j-th column of the arrayABas follows: ifUPLO = 'U',AB(kd+1+i-j,j) = A(i,j)formax(1,j-kd)<=i<=j; ifUPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+kd). π¦LDABβINTEGER. The leading dimension of the arrayAB.LDAB >= KD+1.AFBβCOMPLEX*16 array, dimension (LDAFB,N). The triangular factorUorLfrom the Cholesky factorizationA = U**H*UorA = L*L**Hof the band matrixAas computed byZPBTRF, in the same storage format asA(seeAB). β¨LDAFBβINTEGER. The leading dimension of the arrayAFB.LDAFB >= KD+1.BβCOMPLEX*16 array, dimension (LDB,NRHS). The right hand side matrixB.LDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβCOMPLEX*16 array, dimension (LDX,NRHS). On entry, the solution matrixX, as computed byZPBTRS. On exit, the improved solution matrixX.LDXβINTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβDOUBLE PRECISION array, dimension (NRHS). The estimated forward error bound for each solution vectorX(j)(the j-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β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βCOMPLEX*16 array, dimension (2*N).RWORKβDOUBLE PRECISION array, dimension (N).INFOβ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 187 of file zpbrfs.f.
π€ Author
Generated automatically by Doxygen for LAPACK from the source code.
That's literally the whole page, bestie! π Shoutout to LAPACK Version 3.12.0 for the source/version energy and the pbrfs(3) footer fam β 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