SRC/dptrfs.f(3)
πΈ SRC/dptrfs.f(3) πΈ
okay bestie, welcome to the Library Functions Manual, section 3 energy π
this page is all about SRC/dptrfs.f, and it is very Fortran, very LAPACK, very "trust me, the math is mathing."
π NAME π
SRC/dptrfs.f β the file itself, periodt β¨
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines π¦
subroutine dptrfs (n, nrhs, d, e, df, ef, b, ldb, x, ldx, ferr, berr, work, info)
DPTRFS π
π Function/Subroutine Documentation π
subroutine dptrfs (integer n, integer nrhs, double precision, dimension( * )
d, double precision, dimension( * ) e, double precision, dimension( * )
df, double precision, dimension( * ) ef, 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
info)
DPTRFS π«Ά
π Purpose π
okay so DPTRFS improves the computed solution to a system of linear equations when the coefficient matrix is symmetric positive definite and tridiagonal, and it provides error bounds and backward error estimates for the solution. that's the whole assignment, and it ate. π₯
π Parameters π
NβN is INTEGER. it's the order of the matrix A, andN >= 0. no negative chaos allowed πNRHSβNRHS is INTEGER. the number of right hand sides, i.e., the number of columns of the matrix B.NRHS >= 0. yes bestie, zero is valid, we love a boundary case πDβD is DOUBLE PRECISION array, dimension (N). these are thendiagonal elements of the tridiagonal matrix A β¨EβE is DOUBLE PRECISION array, dimension (N-1). these are the(n-1)subdiagonal elements of the tridiagonal matrix A πΈDFβDF is DOUBLE PRECISION array, dimension (N). these are thendiagonal elements of the diagonal matrix D from the factorization computed byDPTTRFπEFβEF is DOUBLE PRECISION array, dimension (N-1). these are the(n-1)subdiagonal elements of the unit bidiagonal factor L from the factorization computed byDPTTRFπ¦BβB is DOUBLE PRECISION array, dimension (LDB,NRHS). it's the right hand side matrix B, iconic πLDBβLDB is INTEGER. it's the leading dimension of the array B.LDB >= max(1,N). do not play with this, fr fr π«ΆXβX is DOUBLE PRECISION array, dimension (LDX,NRHS). on entry, it's the solution matrix X, as computed byDPTTRS. on exit, it's the improved solution matrix X. main character upgrade moment β¨LDXβLDX is INTEGER. it's the leading dimension of the array X.LDX >= max(1,N). same energy asLDB, no shortcuts πFERRβFERR is DOUBLE PRECISION array, dimension (NRHS). it's the forward error bound for each solution vector X(j), where X(j) is the j-th column of the solution matrix X. if XTRUE is the true solution corresponding to X(j), then 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 in X(j). yes, that sentence is a whole workout, but it's all there πBERRβBERR is DOUBLE PRECISION array, dimension (NRHS). it's the componentwise relative backward error of each solution vector X(j), i.e., the smallest relative change in any element of A or B that makes X(j) an exact solution. lowkey obsessed with how precise that is πWORKβWORK is DOUBLE PRECISION array, dimension (2*N). that's the workspace, bestie, give it its2*NπINFOβINFO is INTEGER= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value π¨
π§ Internal Parameters π§
ITMAXis the maximum number of steps of iterative refinement. that's the internal parameter, and it's giving "trust the process" β¨
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 161 of file dptrfs.f. π«Ά
β¨ Author β¨
Generated automatically by Doxygen for LAPACK from the source code. yes, the robots did this part π€π
okay that's the whole page, bestie. LAPACK Version 3.12.0, from SRC/dptrfs.f(3) β and the footer didn't give me a date, so I'm 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