SRC/cptsvx.f(3)
π SRC/cptsvx.f π
okay so bestie, this is the SRC/cptsvx.f(3) page from the Library Functions Manual, and it is literally all about cptsvx β no cap. π«Ά
πΈ NAME πΈ
SRC/cptsvx.f
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine cptsvx (fact, n, nrhs, d, e, df, ef, b, ldb, x, ldx, rcond,
ferr, berr, work, rwork, info)
CPTSVX computes the solution to system of linear equations A * X = B for PT matrices.
π Function/Subroutine Documentation π
subroutine cptsvx (character fact, integer n, integer nrhs, real, dimension(
* ) d, complex, dimension( * ) e, real, dimension( * ) df, complex,
dimension( * ) ef, 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)
CPTSVX computes the solution to system of linear equations A * X = B for PT matrices.
π Purpose π
okay so CPTSVX uses the factorization A = L*D*L**H to compute the solution to a complex system of linear equations A*X = B, where A is an N-by-N Hermitian 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**H, whereLis a unit lower bidiagonal matrix andDis diagonal. The factorization can also be regarded as having the formA = U**H*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 of the matrixAis 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 REAL array, dimension (N). The n diagonal elements of the tridiagonal matrixA.EβE is COMPLEX array, dimension (N-1). The (n-1) subdiagonal elements of the tridiagonal matrixA.DFβDF is REAL array, dimension (N). IfFACT = 'F', thenDFis an input argument and on entry contains the n diagonal elements of the diagonal matrixDfrom theL*D*L**Hfactorization ofA. IfFACT = 'N', thenDFis an output argument and on exit contains the n diagonal elements of the diagonal matrixDfrom theL*D*L**Hfactorization ofA.EFβEF is COMPLEX 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**Hfactorization ofA. IfFACT = 'N', thenEFis an output argument and on exit contains the (n-1) subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Hfactorization ofA.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 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 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).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 (N).RWORKβRWORK is REAL array, dimension (N).INFOβINFO is INTEGER.= 0: successful exit< 0: ifINFO = -i, the i-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 232 of file cptsvx.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page, bestie! π This was brought to you by LAPACK, Version 3.12.0, and the SRC/cptsvx.f(3) page. slay and stay shiny β¨π¦
π¦ 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