SRC/dgbrfs.f(3)
π NAME π
SRC/dgbrfs.f β okay so bestie, this page is from the Library Functions Manual, and it's giving DGBRFS energy: the routine that improves your computed solution to a banded linear system and serves up error bounds + backward error estimates. π
π SYNOPSIS π
π§ Functions/Subroutines π§
subroutine dgbrfs (trans, n, kl, ku, nrhs, ab, ldab, afb, ldafb, ipiv,
b, ldb, x, ldx, ferr, berr, work, iwork, info)
DGBRFS
π οΈ Function/Subroutine Documentation π οΈ
here's the full typed-out signature, no cap:
subroutine dgbrfs (character trans, integer n, integer kl, integer ku,
integer nrhs, double precision, dimension( ldab, * ) ab, integer ldab,
double precision, dimension( ldafb, * ) afb, integer ldafb, integer,
dimension( * ) ipiv, 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)
DGBRFS
π― Purpose π―
DGBRFS improves the computed solution to a system of linear equations when the coefficient matrix is banded, and provides error bounds and backward error estimates for the solution. literally its whole main-character job π
πΈ Parameters πΈ
TRANSβ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)
NβINTEGER: the order of the matrixA.N >= 0.KLβINTEGER: the number of subdiagonals within the band ofA.KL >= 0.KUβINTEGER: the number of superdiagonals within the band ofA.KU >= 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 original band matrixA, stored in rows1toKL+KU+1. Thej-th column ofAis stored in thej-th column of the arrayABas follows:AB(ku+1+i-j,j) = A(i,j)formax(1,j-ku)<=i<=min(n,j+kl).LDABβINTEGER: the leading dimension of the arrayAB.LDAB >= KL+KU+1.AFBβDOUBLE PRECISION array, dimension (LDAFB,N): details of the LU factorization of the band matrixA, as computed byDGBTRF.Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows1toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1.LDAFBβINTEGER: the leading dimension of the arrayAFB.LDAFB >= 2*KL*KU+1.IPIVβINTEGER array, dimension (N): the pivot indices fromDGBTRF; for1<=i<=N, rowiof the matrix was interchanged with rowIPIV(i).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 byDGBTRS. 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: 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 202 of file dgbrfs.f.
π€ Author π€
Generated automatically by Doxygen for LAPACK from the source code.
π that's the whole glow-up, bestie β LAPACK Version 3.12.0, straight from SRC/dgbrfs.f(3). now go get those error bounds, 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