SRC/dptsvx.f(3)
πΈ NAME πΈ
okay bestie, this is the SRC/dptsvx.f page from the Library Functions Manual β and itβs all about the dptsvx subroutine. π
β¨
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine dptsvx (fact, n, nrhs, d, e, df, ef, b, ldb, x, ldx, rcond,
ferr, berr, work, info)
DPTSVX computes the solution to system of linear equations A * X = B for PT matrices
π¦ Function/Subroutine Documentation π¦
subroutine dptsvx (character fact, 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 rcond, double
precision, dimension( * ) ferr, double precision, dimension( * ) berr,
double precision, dimension( * ) work, integer info)
DPTSVX computes the solution to system of linear equations A * X = B for PT matrices.
π Purpose π
DPTSVX uses the factorization A = L*D*L**T to compute the solution to a real system of linear equations A*X = B, where A is an N-by-N symmetric positive definite tridiagonal matrix and X and B are N-by-NRHS matrices.
Error bounds on the solution and a condition estimate are also provided.
π§ Description π§
The following steps are performed:
- If
FACT = 'N', the matrixAis factored asA = L*D*L**T, whereLis a unit lower bidiagonal matrix andDis diagonal. The factorization can also be regarded as having the formA = U**T*D*U. - If the leading principal minor of order
iis not positive, 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. Specifies whether or not the factored form ofAhas been supplied on entry.= 'F': On entry,DFandEFcontain the factored form ofA.D,E,DF, andEFwill not be modified.= 'N': The matrixAwill be copied toDFandEFand factored.
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 matricesBandX.NRHS >= 0.DβD is DOUBLE PRECISION array, dimension (N). Thendiagonal elements of the tridiagonal matrixA.EβE is DOUBLE PRECISION array, dimension (N-1). The(n-1)subdiagonal elements of the tridiagonal matrixA.DFβDF is DOUBLE PRECISION array, dimension (N). IfFACT = 'F', thenDFis an input argument and on entry contains thendiagonal elements of the diagonal matrixDfrom theL*D*L**Tfactorization ofA. IfFACT = 'N', thenDFis an output argument and on exit contains thendiagonal elements of the diagonal matrixDfrom theL*D*L**Tfactorization ofA.EFβEF is DOUBLE PRECISION array, dimension (N-1). IfFACT = 'F', thenEFis an input argument and on entry contains the(n-1)subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Tfactorization ofA. IfFACT = 'N', thenEFis an output argument and on exit contains the(n-1)subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Tfactorization ofA.BβB is DOUBLE PRECISION 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 DOUBLE PRECISION array, dimension (LDX,NRHS). IfINFO = 0ofINFO = N+1, theN-by-NRHSsolution matrixX.LDXβLDX is INTEGER. The leading dimension of the arrayX.LDX >= max(1,N).RCONDβRCOND is DOUBLE PRECISION. 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 DOUBLE PRECISION array, dimension (NRHS). The 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).BERRβBERR is 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βWORK is DOUBLE PRECISION array, dimension (2*N).INFOβINFO is INTEGER.= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value> 0: ifINFO = i, andiis<= N: the leading principal minor of orderiofAis not positive, so the factorization could not be completed, and the solution has not been 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 226 of file dptsvx.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
β¨ xoxo, this was LAPACK Version 3.12.0, signing off from SRC/dptsvx.f(3) β 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