SRC/dgtrfs.f(3)
π NAME π
SRC/dgtrfs.f(3) β okay bestie, this is from the Library Functions Manual, and it's giving βtridiagonal linear solver glow-upβ energy. π
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine dgtrfsβ(trans, n, nrhs, dl, d, du, dlf, df, duf, du2, ipiv, b, ldb, x, ldx, ferr, berr, work, iwork, info)β DGTRFS
subroutine dgtrfs (trans, n, nrhs, dl, d, du, dlf, df, duf, du2, ipiv,
b, ldb, x, ldx, ferr, berr, work, iwork, info)
DGTRFS
π¦ Function/Subroutine Documentation π¦
πΈ subroutine dgtrfs πΈ
subroutine dgtrfs (character trans, integer n, integer nrhs, double
precision, dimension( * ) dl, double precision, dimension( * ) d, double
precision, dimension( * ) du, double precision, dimension( * ) dlf,
double precision, dimension( * ) df, double precision, dimension( * )
duf, double precision, dimension( * ) du2, 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)
DGTRFS
DGTRFS
π«Ά Purpose π«Ά
DGTRFS improves the computed solution to a system of linear equations when the coefficient matrix is tridiagonal, and provides error bounds and backward error estimates for the solution. Periodt. β¨
π Parameters π
TRANSβTRANSisCHARACTER*1. It 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βNisINTEGER. The order of the matrixA.N >= 0. πNRHSβNRHSisINTEGER. The number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0. πDLβDLisDOUBLE PRECISIONarray, dimension(N-1). The(n-1)subdiagonal elements ofA. πDβDisDOUBLE PRECISIONarray, dimension(N). The diagonal elements ofA. βDUβDUisDOUBLE PRECISIONarray, dimension(N-1). The(n-1)superdiagonal elements ofA. π¦DLFβDLFisDOUBLE PRECISIONarray, dimension(N-1). The(n-1)multipliers that define the matrixLfrom the LU factorization ofAas computed byDGTTRF. πDFβDFisDOUBLE PRECISIONarray, dimension(N). Thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA. πDUFβDUFisDOUBLE PRECISIONarray, dimension(N-1). The(n-1)elements of the first superdiagonal ofU. πDU2βDU2isDOUBLE PRECISIONarray, dimension(N-2). The(n-2)elements of the second superdiagonal ofU. π§IPIVβIPIVisINTEGERarray, dimension(N). The pivot indices; for1 <= i <= n, rowiof the matrix was interchanged with rowIPIV(i).IPIV(i)will always be eitheriori+1;IPIV(i) = iindicates a row interchange was not required. πBβBisDOUBLE PRECISIONarray, dimension(LDB,NRHS). The right hand side matrixB. πLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). πXβXisDOUBLE PRECISIONarray, dimension(LDX,NRHS). On entry, the solution matrixX, as computed byDGTTRS. On exit, the improved solution matrixX. π₯LDXβLDXisINTEGER. The leading dimension of the arrayX.LDX >= max(1,N). πΈFERRβFERRisDOUBLE PRECISIONarray, 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βBERRisDOUBLE PRECISIONarray, 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βWORKisDOUBLE PRECISIONarray, dimension(3*N). β¨IWORKβIWORKisINTEGERarray, dimension(N). πINFOβINFOisINTEGER:= 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. iykyk π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 206 of file dgtrfs.f. π₯
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π«Ά
Signed off by LAPACK β Version 3.12.0 β for SRC/dgtrfs.f(3) β 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