SRC/zgtrfs.f(3)
π NAME
SRC/zgtrfs.f β page header says SRC/zgtrfs.f(3), and the manual is Library Functions Manual. Okay so thatβs the intro, bestie β now letβs get into the actual routine. β¨
π SYNOPSIS
π¦ Functions/Subroutines
subroutine zgtrfs (trans, n, nrhs, dl, d, du, dlf, df, duf, du2, ipiv,
b, ldb, x, ldx, ferr, berr, work, rwork, info)
ZGTRFS
π Function/Subroutine Documentation
subroutine zgtrfs (character trans, integer n, integer nrhs, complex*16,
dimension( * ) dl, complex*16, dimension( * ) d, complex*16, dimension(
* ) du, complex*16, dimension( * ) dlf, complex*16, dimension( * ) df,
complex*16, dimension( * ) duf, complex*16, dimension( * ) du2, integer,
dimension( * ) ipiv, 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)
ZGTRFS
π― Purpose
Okay so ZGTRFS is here to improve the computed solution to a system of linear equations when the coefficient matrix is tridiagonal, and it also provides error bounds and backward error estimates for the solution. Itβs giving βyour answer but make it more trustworthy.β π
π§Ύ 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)
NβINTEGER. The order of the matrixA.N >= 0.NRHSβINTEGER. The number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.DLβCOMPLEX*16 array, dimension (N-1). The(n-1)subdiagonal elements ofA.DβCOMPLEX*16 array, dimension (N). The diagonal elements ofA.DUβCOMPLEX*16 array, dimension (N-1). The(n-1)superdiagonal elements ofA.DLFβCOMPLEX*16 array, dimension (N-1). The(n-1)multipliers that define the matrixLfrom the LU factorization ofAas computed byZGTTRF.DFβCOMPLEX*16 array, dimension (N). Thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA.DUFβCOMPLEX*16 array, dimension (N-1). The(n-1)elements of the first superdiagonal ofU.DU2βCOMPLEX*16 array, dimension (N-2). The(n-2)elements of the second superdiagonal ofU.IPIVβINTEGER array, 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β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 byZGTTRS. 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βCOMPLEX*16 array, dimension (2*N).RWORKβDOUBLE PRECISION array, dimension (N).INFOβINTEGER.= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value
π§ Internal Parameters
ITMAXβ 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 207 of file zgtrfs.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
π Thatβs the whole page, bestie β LAPACK Version 3.12.0, file SRC/zgtrfs.f(3). Slay and bye! π
π¦ 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