gtsvx(3)
π gtsvx(3) β Library Functions Manual π
Bestie, this is the gtsvx(3) page, and the name is gtsvx β gtsvx: factor and solve, expert β¨. Itβs giving βlinear algebra but make it expert mode,β and honestly? Iconic.
β¨ NAME β¨
gtsvx β gtsvx: factor and solve, expert
π SYNOPSIS π
π Functions π
subroutine cgtsvx (fact, trans, n, nrhs, dl, d, du, dlf, df, duf, du2, ipiv, b, ldb, x, ldx, rcond, ferr, berr, work, rwork, info)βCGTSVX computes the solution to system of linear equations A * X = B for GT matricessubroutine dgtsvx (fact, trans, n, nrhs, dl, d, du, dlf, df, duf, du2, ipiv, b, ldb, x, ldx, rcond, ferr, berr, work, iwork, info)βDGTSVX computes the solution to system of linear equations A * X = B for GT matricessubroutine sgtsvx (fact, trans, n, nrhs, dl, d, du, dlf, df, duf, du2, ipiv, b, ldb, x, ldx, rcond, ferr, berr, work, iwork, info)βSGTSVX computes the solution to system of linear equations A * X = B for GT matricessubroutine zgtsvx (fact, trans, n, nrhs, dl, d, du, dlf, df, duf, du2, ipiv, b, ldb, x, ldx, rcond, ferr, berr, work, rwork, info)βZGTSVX computes the solution to system of linear equations A * X = B for GT matrices
π¦ Detailed Description π¦
Okay so this is the detailed-description zone, and it rolls straight into the function documentation. Letβs get into the cgtsvx of it all. π
π Function Documentation π
π§ subroutine cgtsvx π§
subroutine cgtsvx (character fact, character trans, integer n, integer nrhs,
complex, dimension( * ) dl, complex, dimension( * ) d, complex,
dimension( * ) du, complex, dimension( * ) dlf, complex, dimension( * )
df, complex, dimension( * ) duf, complex, dimension( * ) du2, integer,
dimension( * ) ipiv, complex, dimension( ldb, * ) b, integer ldb,
complex, dimension( ldx, * ) x, integer ldx, real rcond, real,
dimension( * ) ferr, real, dimension( * ) berr, complex, dimension( * )
work, real, dimension( * ) rwork, integer info)
CGTSVX computes the solution to system of linear equations A * X = B for GT matrices
π― Purpose π―
Bestie, CGTSVX is out here using the LU factorization to solve a complex system of linear equations:
A * X = BA**T * X = BA**H * X = B
β¦where A is a tridiagonal matrix of order N, and X and B are N-by-NRHS matrices. It also provides error bounds on the solution and a condition estimate. Obsessed. β¨
πΈ Description πΈ
Hereβs the step-by-step, bestie:
- If
FACT = 'N', the LU decomposition is used to factor the matrixAasA = L * U, whereLis a product of permutation and unit lower bidiagonal matrices, andUis upper triangular with nonzeros in only the main diagonal and first two superdiagonals. π - If some
U(i,i)=0, so thatUis exactly singular, then the routine returns withINFO = i. Otherwise, the factored form ofAis used to estimate the condition number of the matrixA. If the reciprocal of the condition number is less than machine precision,INFO = N+1is returned as a warning, but the routine still goes on to solve forXand compute error bounds as described below. π«Ά - The system of equations is solved for
Xusing the factored form ofA. - Iterative refinement is applied to improve the computed solution matrix and calculate error bounds and backward error estimates for it. π
π§Έ Parameters π§Έ
FACTβFACT is CHARACTER*1. It specifies whether or not the factored form ofAhas been supplied on entry.= 'F':DLF,DF,DUF,DU2, andIPIVcontain the factored form ofA;DL,D,DU,DLF,DF,DUF,DU2andIPIVwill not be modified.= 'N':The matrix will be copied toDLF,DF, andDUFand factored.
TRANSβTRANS is CHARACTER*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)
NβN is INTEGER. The order of the matrixA.N >= 0.NRHSβNRHS is INTEGER. The number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.DLβDL is COMPLEX array, dimension (N-1). The(n-1)subdiagonal elements ofA.DβD is COMPLEX array, dimension (N). Thendiagonal elements ofA.DUβDU is COMPLEX array, dimension (N-1). The(n-1)superdiagonal elements ofA.DLFβDLF is COMPLEX array, dimension (N-1).- If
FACT = 'F', thenDLFis an input argument and on entry contains the(n-1)multipliers that define the matrixLfrom the LU factorization ofAas computed byCGTTRF. - If
FACT = 'N', thenDLFis an output argument and on exit contains the(n-1)multipliers that define the matrixLfrom the LU factorization ofA.
- If
DFβDF is COMPLEX array, dimension (N).- If
FACT = 'F', thenDFis an input argument and on entry contains thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA. - If
FACT = 'N', thenDFis an output argument and on exit contains thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA.
- If
DUFβDUF is COMPLEX array, dimension (N-1).- If
FACT = 'F', thenDUFis an input argument and on entry contains the(n-1)elements of the first superdiagonal ofU. - If
FACT = 'N', thenDUFis an output argument and on exit contains the(n-1)elements of the first superdiagonal ofU.
- If
DU2βDU2 is COMPLEX array, dimension (N-2).- If
FACT = 'F', thenDU2is an input argument and on entry contains the(n-2)elements of the second superdiagonal ofU. - If
FACT = 'N', thenDU2is an output argument and on exit contains the(n-2)elements of the second superdiagonal ofU.
- If
IPIVβIPIV is INTEGER array, dimension (N).- If
FACT = 'F', thenIPIVis an input argument and on entry contains the pivot indices from the LU factorization ofAas computed byCGTTRF. - If
FACT = 'N', thenIPIVis an output argument and on exit contains the pivot indices from the LU factorization ofA; rowiof the matrix was interchanged with rowIPIV(i).IPIV(i)will always be eitheriori+1;IPIV(i) = iindicates a row interchange was not required.
- If
BβB is COMPLEX array, dimension (LDB,NRHS). TheN-by-NRHSright hand side matrixB.LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβX is COMPLEX array, dimension (LDX,NRHS). IfINFO = 0orINFO = N+1, theN-by-NRHSsolution matrixX.LDXβLDX is INTEGER. The leading dimension of the arrayX.LDX >= max(1,N).RCONDβRCOND is REAL. The estimate of the reciprocal condition number of the matrixA. IfRCONDis less than the machine precision (in particular, ifRCOND = 0), the matrix is singular to working precision. This condition is indicated by a return code ofINFO > 0.FERRβFERR is 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βBERR is 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βWORK is COMPLEX array, dimension (2*N).RWORKβRWORK is REAL array, dimension (N).INFOβINFO is INTEGER.= 0:successful exit< 0:ifINFO = -i, thei-th argument had an illegal value> 0:ifINFO = i, andiis<= N:U(i,i)is exactly zero. The factorization has not been completed unlessi = N, but the factorUis exactly singular, so the solution and error bounds could not be computed.RCOND = 0is returned.= N+1:Uis nonsingular, butRCONDis less than machine precision, meaning that the matrix is singular to working precision. Nevertheless, the solution and error bounds are computed because there are a number of situations where the computed solution can be more accurate than the value ofRCONDwould suggest.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 291 of file cgtsvx.f.
subroutine dgtsvx (character fact, 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 rcond,
double precision, dimension( * ) ferr, double precision, dimension( * )
berr, double precision, dimension( * ) work, integer, dimension( * )
iwork, integer info)
DGTSVX computes the solution to system of linear equations A * X = B for GT matrices. iconic behavior, honestly π
π― Purpose
Okay so DGTSVX uses the LU factorization to compute the solution to a real system of linear equations A * X = B or A**T * X = B, where A is a tridiagonal matrix of order N and X and B are N-by-NRHS matrices.
Error bounds on the solution and a condition estimate are also provided. the full package, bestie β¨
π Description
The following steps are performed:
- If
FACT = 'N', the LU decomposition is used to factor the matrixAasA = L * U, whereLis a product of permutation and unit lower bidiagonal matrices andUis upper triangular with nonzeros in only the main diagonal and first two superdiagonals. - If some
U(i,i)=0, so thatUis exactly singular, then the routine returns withINFO = i. Otherwise, the factored form ofAis used to estimate the condition number of the matrixA. If the reciprocal of the condition number is less than machine precision,INFO = N+1is returned as a warning, but the routine still goes on to solve forXand compute error bounds as described below. - The system of equations is solved for
Xusing the factored form ofA. - Iterative refinement is applied to improve the computed solution matrix and calculate error bounds and backward error estimates for it. glow-up era π¦
π§© Parameters
FACTβ isCHARACTER*1, and it specifies whether or not the factored form ofAhas been supplied on entry.= 'F':DLF,DF,DUF,DU2, andIPIVcontain the factored form ofA;DL,D,DU,DLF,DF,DUF,DU2andIPIVwill not be modified.= 'N': The matrix will be copied toDLF,DF, andDUFand factored.
TRANSβ isCHARACTER*1, and 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β isINTEGER, and it is the order of the matrixA.N >= 0.NRHSβ isINTEGER, and it is the number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.DLβ isDOUBLE PRECISIONarray, dimension(N-1). The(n-1)subdiagonal elements ofA. the under-edge crew πDβ isDOUBLE PRECISIONarray, dimension(N). Thendiagonal elements ofA. main character diagonal βDUβ isDOUBLE PRECISIONarray, dimension(N-1). The(n-1)superdiagonal elements ofA.DLFβ isDOUBLE PRECISIONarray, dimension(N-1).- If
FACT = 'F', thenDLFis an input argument and on entry contains the(n-1)multipliers that define the matrixLfrom the LU factorization ofAas computed byDGTTRF. - If
FACT = 'N', thenDLFis an output argument and on exit contains the(n-1)multipliers that define the matrixLfrom the LU factorization ofA.
- If
DFβ isDOUBLE PRECISIONarray, dimension(N).- If
FACT = 'F', thenDFis an input argument and on entry contains thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA. - If
FACT = 'N', thenDFis an output argument and on exit contains thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA.
- If
DUFβ isDOUBLE PRECISIONarray, dimension(N-1).- If
FACT = 'F', thenDUFis an input argument and on entry contains the(n-1)elements of the first superdiagonal ofU. - If
FACT = 'N', thenDUFis an output argument and on exit contains the(n-1)elements of the first superdiagonal ofU.
- If
DU2β isDOUBLE PRECISIONarray, dimension(N-2).- If
FACT = 'F', thenDU2is an input argument and on entry contains the(n-2)elements of the second superdiagonal ofU. - If
FACT = 'N', thenDU2is an output argument and on exit contains the(n-2)elements of the second superdiagonal ofU.
- If
IPIVβ isINTEGERarray, dimension(N).- If
FACT = 'F', thenIPIVis an input argument and on entry contains the pivot indices from the LU factorization ofAas computed byDGTTRF. - If
FACT = 'N', thenIPIVis an output argument and on exit contains the pivot indices from the LU factorization ofA; rowiof the matrix was interchanged with rowIPIV(i).IPIV(i)will always be eitheriori+1;IPIV(i) = iindicates a row interchange was not required. pivot tea, spilled π«
- If
Bβ isDOUBLE PRECISIONarray, dimension(LDB,NRHS). TheN-by-NRHSright hand side matrixB.LDBβ isINTEGER, and it is the leading dimension of the arrayB.LDB >= max(1,N).Xβ isDOUBLE PRECISIONarray, dimension(LDX,NRHS). IfINFO = 0orINFO = N+1, theN-by-NRHSsolution matrixX. the answer matrix, periodt πLDXβ isINTEGER, and it is the leading dimension of the arrayX.LDX >= max(1,N).RCONDβ isDOUBLE PRECISION. The estimate of the reciprocal condition number of the matrixA. IfRCONDis less than the machine precision (in particular, ifRCOND = 0), the matrix is singular to working precision. This condition is indicated by a return code ofINFO > 0.FERRβ isDOUBLE 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. sheβs reliable but dramatic πBERRβ isDOUBLE 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β isDOUBLE PRECISIONarray, dimension(3*N).IWORKβ isINTEGERarray, dimension(N).INFOβ isINTEGER.= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value> 0: ifINFO = i, andiis<= N:U(i,i)is exactly zero. The factorization has not been completed unlessi = N, but the factorUis exactly singular, so the solution and error bounds could not be computed.RCOND = 0is returned.= N+1:Uis nonsingular, butRCONDis less than machine precision, meaning that the matrix is singular to working precision. Nevertheless, the solution and error bounds are computed because there are a number of situations where the computed solution can be more accurate than the value ofRCONDwould suggest. so we still compute, bestie π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 290 of file dgtsvx.f.
subroutine sgtsvx (character fact, character trans, integer n, integer nrhs,
real, dimension( * ) dl, real, dimension( * ) d, real, dimension( * )
du, real, dimension( * ) dlf, real, dimension( * ) df, real, dimension(
* ) duf, real, dimension( * ) du2, integer, dimension( * ) ipiv, real,
dimension( ldb, * ) b, integer ldb, real, dimension( ldx, * ) x, integer
ldx, real rcond, real, dimension( * ) ferr, real, dimension( * ) berr,
real, dimension( * ) work, integer, dimension( * ) iwork, integer info)
SGTSVX computes the solution to system of linear equations A * X = B for GT matrices. single precision, same slay β¨
π― Purpose
SGTSVX uses the LU factorization to compute the solution to a real system of linear equations A * X = B or A**T * X = B, where A is a tridiagonal matrix of order N and X and B are N-by-NRHS matrices.
Error bounds on the solution and a condition estimate are also provided. sheβs thorough π¦
π§ Description
okay so here's the step-by-step of what actually goes down:
- if
FACT = 'N', the LU decomposition is used to factor the matrixAasA = L * U, whereLis a product of permutation and unit lower bidiagonal matrices, andUis upper triangular with nonzeros in only the main diagonal and first two superdiagonals. slay. - if some
U(i,i)=0, so thatUis exactly singular, then the routine returns withINFO = i. otherwise, the factored form ofAis used to estimate the condition number of the matrixA. if the reciprocal of the condition number is less than machine precision,INFO = N+1is returned as a warning, but bestie the routine still goes on to solve forXand compute error bounds as described below. no cap. - the system of equations is solved for
Xusing the factored form ofA. periodt. - iterative refinement is applied to improve the computed solution matrix and calculate error bounds and backward error estimates for it. iconic.
π Parameters
FACTβ this isCHARACTER*1. it tells us whether or not the factored form ofAhas been supplied on entry. ='F':DLF,DF,DUF,DU2, andIPIVcontain the factored form ofA;DL,D,DU,DLF,DF,DUF,DU2andIPIVwill not be modified. ='N': the matrix will be copied toDLF,DF, andDUFand factored.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.NRHSβINTEGER. the number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.DLβREALarray, dimension(N-1). the (n-1) subdiagonal elements ofA.DβREALarray, dimension(N). the n diagonal elements ofA.DUβREALarray, dimension(N-1). the (n-1) superdiagonal elements ofA.DLFβREALarray, dimension(N-1). ifFACT = 'F', thenDLFis an input argument and on entry contains the (n-1) multipliers that define the matrixLfrom the LU factorization ofAas computed bySGTTRF. ifFACT = 'N', thenDLFis an output argument and on exit contains the (n-1) multipliers that define the matrixLfrom the LU factorization ofA.DFβREALarray, dimension(N). ifFACT = 'F', thenDFis an input argument and on entry contains the n diagonal elements of the upper triangular matrixUfrom the LU factorization ofA. ifFACT = 'N', thenDFis an output argument and on exit contains the n diagonal elements of the upper triangular matrixUfrom the LU factorization ofA.DUFβREALarray, dimension(N-1). ifFACT = 'F', thenDUFis an input argument and on entry contains the (n-1) elements of the first superdiagonal ofU. ifFACT = 'N', thenDUFis an output argument and on exit contains the (n-1) elements of the first superdiagonal ofU.DU2βREALarray, dimension(N-2). ifFACT = 'F', thenDU2is an input argument and on entry contains the (n-2) elements of the second superdiagonal ofU. ifFACT = 'N', thenDU2is an output argument and on exit contains the (n-2) elements of the second superdiagonal ofU.IPIVβINTEGERarray, dimension(N). ifFACT = 'F', thenIPIVis an input argument and on entry contains the pivot indices from the LU factorization ofAas computed bySGTTRF. ifFACT = 'N', thenIPIVis an output argument and on exit contains the pivot indices from the LU factorization ofA; row i of the matrix was interchanged with rowIPIV(i).IPIV(i)will always be either i or i+1;IPIV(i) = iindicates a row interchange was not required.BβREALarray, dimension(LDB,NRHS). the N-by-NRHS right hand side matrixB.LDBβINTEGER. the leading dimension of the arrayB.LDB >= max(1,N).XβREALarray, dimension(LDX,NRHS). ifINFO = 0orINFO = N+1, the N-by-NRHS solution matrixX.LDXβINTEGER. the leading dimension of the arrayX.LDX >= max(1,N).RCONDβREAL. the estimate of the reciprocal condition number of the matrixA. ifRCONDis less than the machine precision (in particular, ifRCOND = 0), the matrix is singular to working precision. this condition is indicated by a return code ofINFO > 0.FERRβREALarray, 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. lowkey useful.BERRβREALarray, 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βREALarray, dimension(3*N).IWORKβINTEGERarray, dimension(N).INFOβINTEGER. =0: successful exit <0: ifINFO = -i, the i-th argument had an illegal value
0: ifINFO = i, and i is
<= N: U(i,i) is exactly zero. the factorization has not been completed unless i = N, but the factor U is exactly singular, so the solution and error bounds could not be computed. RCOND = 0 is returned. = N+1: U is nonsingular, but RCOND is less than machine precision, meaning that the matrix is singular to working precision. nevertheless, the solution and error bounds are computed because there are a number of situations where the computed solution can be more accurate than the value of RCOND would suggest. π
π«Ά Author
Univ. of Tennessee Univ. of California Berkeley Univ. of Colorado Denver NAG Ltd.
Definition at line 290 of file sgtsvx.f.
π¦ zgtsvx
subroutine zgtsvx (character fact, 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 rcond, double precision, dimension( * ) ferr, double
precision, dimension( * ) berr, complex*16, dimension( * ) work, double
precision, dimension( * ) rwork, integer info)
ZGTSVX computes the solution to system of linear equations A * X = B for GT matrices. periodt.
β¨ Purpose
okay so ZGTSVX uses the LU factorization to compute the solution to a complex system of linear equations A * X = B, A**T * X = B, or A**H * X = B, where A is a tridiagonal matrix of order N and X and B are N-by-NRHS matrices.
error bounds on the solution and a condition estimate are also provided. we love a thorough queen. π
πΈ Description
the following steps are performed:
- if
FACT = 'N', the LU decomposition is used to factor the matrixAasA = L * U, whereLis a product of permutation and unit lower bidiagonal matrices andUis upper triangular with nonzeros in only the main diagonal and first two superdiagonals. slay. - if some
U(i,i)=0, so thatUis exactly singular, then the routine returns withINFO = i. otherwise, the factored form ofAis used to estimate the condition number of the matrixA. if the reciprocal of the condition number is less than machine precision,INFO = N+1is returned as a warning, but the routine still goes on to solve forXand compute error bounds as described below. no cap. - the system of equations is solved for
Xusing the factored form ofA. periodt. - iterative refinement is applied to improve the computed solution matrix and calculate error bounds and backward error estimates for it. iconic.
π Parameters
FACT
Picking up right at FACT, bestie:
FACTβCHARACTER*1. Specifies whether or not the factored form ofAhas been supplied on entry.= 'F':DLF,DF,DUF,DU2, andIPIVcontain the factored form ofA;DL,D,DU,DLF,DF,DUF,DU2andIPIVwill not be modified.= 'N': the matrix will be copied toDLF,DF, andDUFand factored. π«Ά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). Thendiagonal elements ofA. πDUβCOMPLEX*16 array, dimension (N-1). The(n-1)superdiagonal elements ofA. πΈDLFβCOMPLEX*16 array, dimension (N-1). IfFACT = 'F', thenDLFis an input argument and on entry contains the(n-1)multipliers that define the matrixLfrom the LU factorization ofAas computed byZGTTRF. IfFACT = 'N', thenDLFis an output argument and on exit contains the(n-1)multipliers that define the matrixLfrom the LU factorization ofA. πDFβCOMPLEX*16 array, dimension (N). IfFACT = 'F', thenDFis an input argument and on entry contains thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA. IfFACT = 'N', thenDFis an output argument and on exit contains thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA. πDUFβCOMPLEX*16 array, dimension (N-1). IfFACT = 'F', thenDUFis an input argument and on entry contains the(n-1)elements of the first superdiagonal ofU. IfFACT = 'N', thenDUFis an output argument and on exit contains the(n-1)elements of the first superdiagonal ofU. πDU2βCOMPLEX*16 array, dimension (N-2). IfFACT = 'F', thenDU2is an input argument and on entry contains the(n-2)elements of the second superdiagonal ofU. IfFACT = 'N', thenDU2is an output argument and on exit contains the(n-2)elements of the second superdiagonal ofU. βIPIVβINTEGER array, dimension (N). IfFACT = 'F', thenIPIVis an input argument and on entry contains the pivot indices from the LU factorization ofAas computed byZGTTRF. IfFACT = 'N', thenIPIVis an output argument and on exit contains the pivot indices from the LU factorization ofA; 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). TheN-by-NRHSright hand side matrixB. πLDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). π§XβCOMPLEX*16 array, dimension (LDX,NRHS). IfINFO = 0orINFO = N+1, theN-by-NRHSsolution matrixX. πLDXβINTEGER. The leading dimension of the arrayX.LDX >= max(1,N). πRCONDβDOUBLE PRECISION. The estimate of the reciprocal condition number of the matrixA. IfRCONDis less than the machine precision (in particular, ifRCOND = 0), the matrix is singular to working precision. This condition is indicated by a return code ofINFO > 0. π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.> 0: ifINFO = i, andiis:<= N:U(i,i)is exactly zero. The factorization has not been completed unlessi = N, but the factorUis exactly singular, so the solution and error bounds could not be computed.RCOND = 0is returned.= N+1:Uis nonsingular, butRCONDis less than machine precision, meaning that the matrix is singular to working precision. Nevertheless, the solution and error bounds are computed because there are a number of situations where the computed solution can be more accurate than the value ofRCONDwould suggest.
Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 291 of file zgtsvx.f.
Author (Doxygen's little note) πΈ
Generated automatically by Doxygen for LAPACK from the source code.
And that's the footer vibe, bestie: LAPACK Version 3.12.0, page gtsvx(3) β no date listed, just pure factorization energy π
β¨
π¦ 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