SPTSVX(3)
π SPTSVX(3) β tridiagonal solver, but make it fashion π
okay so this page lives in the Library Functions Manual, and itβs all about /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sptsvx.f. yes, that whole path is literally the NAME sectionβs main character. no cap.
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sptsvx.f β thatβs the file, bestie. thatβs the name. iconic behavior.
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines
subroutine SPTSVX (fact, n, nrhs, d, e, df, ef, b, ldb, x, ldx, rcond,
ferr, berr, work, info)
SPTSVX computes the solution to system of linear equations A * X = B for PT matrices. periodt.
π¦ Function/Subroutine Documentation π¦
subroutine SPTSVX (character fact, integer n, integer nrhs, real, dimension(
* ) d, real, dimension( * ) e, real, dimension( * ) df, real, dimension(
* ) ef, real, dimension( ldb, * ) b, integer ldb, real, dimension( ldx,
* ) x, integer ldx, real rcond, real, dimension( * ) ferr, real,
dimension( * ) berr, real, dimension( * ) work, integer info)
SPTSVX computes the solution to system of linear equations A * X = B for PT matrices. we love a consistent queen.
π Purpose π
okay so SPTSVX 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. fancy, but make it math.
π Description π
the following steps are performed, in this exact order, no skipping:
- 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. she warns you but she keeps going. π - 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β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βINTEGER. the order of the matrixA.N >= 0.NRHSβINTEGER. the number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.DβREAL array, dimension (N). thendiagonal elements of the tridiagonal matrixA.EβREAL array, dimension (N-1). the(n-1)subdiagonal elements of the tridiagonal matrixA.DFβREAL 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βREAL 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βREAL array, dimension (LDB,NRHS). theN-by-NRHSright hand side matrixB.LDBβINTEGER. the leading dimension of the arrayB.LDB >= max(1,N).XβREAL array, dimension (LDX,NRHS). ifINFO = 0ofINFO = N+1(thatβs literally what it says π), theN-by-NRHSsolution matrixX.LDXβINTEGER. the leading dimension of the arrayX.LDX >= max(1,N).RCONDβ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βREAL 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β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βREAL array, dimension (2*N).INFOβ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 π§
Definition at line 226 of file sptsvx.f.
β Author (generated edition) β
generated automatically by Doxygen for LAPACK from the source code. sheβs meta like that.
and thatβs the whole vibe, bestie β LAPACK Version 3.12.0, footer path /home/abui...RC/sptsvx.f(3), generated automatically by Doxygen for LAPACK from the source code. mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms