ptsv(3)
π ptsv(3) β Library Functions Manual π
okay so bestie, this is the ptsv(3) page from the Library Functions Manual β itβs giving βfactor and solve,β and weβre keeping every deet. π
β¨ NAME β¨
ptsv - ptsv: factor and solve π
β¨ SYNOPSIS β¨
π Functions π
subroutine cptsv (n, nrhs, d, e, b, ldb, info)β CPTSV computes the solution to system of linear equationsA * X = Bfor PT matrices. πsubroutine dptsv (n, nrhs, d, e, b, ldb, info)β DPTSV computes the solution to system of linear equationsA * X = Bfor PT matrices. β¨subroutine sptsv (n, nrhs, d, e, b, ldb, info)β SPTSV computes the solution to system of linear equationsA * X = Bfor PT matrices. π¦subroutine zptsv (n, nrhs, d, e, b, ldb, info)β ZPTSV computes the solution to system of linear equationsA * X = Bfor PT matrices. πΈ
β¨ Detailed Description β¨
(no extra details listed here in this part π)
π«Ά FUNCTION DOCUMENTATION π«Ά
okay bestie, this is the part where we actually meet the four routines. they're quadruplets, basically β same job, different precision. s and d do the real symmetric thing, c and z do the complex Hermitian thing. slay π
subroutine cptsv
subroutine cptsv (integer n, integer nrhs, real, dimension( * ) d, complex,
dimension( * ) e, complex, dimension( ldb, * ) b, integer ldb, integer
info)
CPTSV computes the solution to system of linear equations A * X = B for PT matrices β¨
π Purpose
so like, CPTSV computes the solution to a complex system of linear equations A*X = B, okay? where A is an N-by-N Hermitian positive definite tridiagonal matrix, and X and B are N-by-NRHS matrices. yes, all of that. iykyk.
A is factored as A = L*D*L**H, and the factored form of A is then used to solve the system of equations. iconic behaviour honestly π
π Parameters
NβN is INTEGER. the order of the matrixA.N >= 0. no cap, it can be zero, she's flexible πNRHSβNRHS is INTEGER. the number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.DβD is REAL array, dimension (N). on entry, the n diagonal elements of the tridiagonal matrixA. on exit, the n diagonal elements of the diagonal matrixDfrom the factorizationA = L*D*L**H. glow-up moment fr fr β¨EβE is COMPLEX array, dimension (N-1). on entry, the (n-1) subdiagonal elements of the tridiagonal matrixA. on exit, the (n-1) subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Hfactorization ofA.Ecan also be regarded as the superdiagonal of the unit bidiagonal factorUfrom theU**H*D*Ufactorization ofA. she contains multitudes π¦BβB is COMPLEX array, dimension (LDB,NRHS). on entry, the N-by-NRHS right hand side matrixB. on exit, ifINFO = 0, the N-by-NRHS solution matrixX. literally the whole point of the function, main character energy πLDBβLDB is INTEGER. the leading dimension of the arrayB.LDB >= max(1,N).INFOβINFO is INTEGER:= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value π> 0: ifINFO = i, the leading principal minor of order i is not positive, and the solution has not been computed. the factorization has not been completed unlessi = N. π so yeah, that's a real "not me breaking linear algebra" moment
πΈ Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 114 of file cptsv.f.
subroutine dptsv
subroutine dptsv (integer n, integer nrhs, double precision, dimension( * )
d, double precision, dimension( * ) e, double precision, dimension( ldb,
* ) b, integer ldb, integer info)
DPTSV computes the solution to system of linear equations A * X = B for PT matrices β¨
π Purpose
DPTSV computes 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. same vibe, double the precision, zero notes π
A is factored as A = L*D*L**T, and the factored form of A is then used to solve the system of equations. slay π₯
π Parameters
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.DβD is DOUBLE PRECISION array, dimension (N). on entry, the n diagonal elements of the tridiagonal matrixA. on exit, the n diagonal elements of the diagonal matrixDfrom the factorizationA = L*D*L**T.EβE is DOUBLE PRECISION array, dimension (N-1). on entry, the (n-1) subdiagonal elements of the tridiagonal matrixA. on exit, the (n-1) subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Tfactorization ofA. (Ecan also be regarded as the superdiagonal of the unit bidiagonal factorUfrom theU**T*D*Ufactorization ofA.) yes the parentheses are canon, i don't make the rules π«ΆBβB is DOUBLE PRECISION array, dimension (LDB,NRHS). on entry, the N-by-NRHS right hand side matrixB. on exit, ifINFO = 0, the N-by-NRHS solution matrixX. she solved it πLDBβLDB is INTEGER. the leading dimension of the arrayB.LDB >= max(1,N).INFOβINFO is INTEGER:= 0: successful exit β¨< 0: ifINFO = -i, the i-th argument had an illegal value π> 0: ifINFO = i, the leading principal minor of order i is not positive, and the solution has not been computed. the factorization has not been completed unlessi = N. so close yet so far π
πΈ Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 113 of file dptsv.f.
subroutine sptsv
subroutine sptsv (integer n, integer nrhs, real, dimension( * ) d, real,
dimension( * ) e, real, dimension( ldb, * ) b, integer ldb, integer
info)
SPTSV computes the solution to system of linear equations A * X = B for PT matrices β¨
π Purpose
SPTSV computes 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. the single-precision sister of DPTSV, same energy, smaller floats π
A is factored as A = L*D*L**T, and the factored form of A is then used to solve the system of equations. ate and left no crumbs π₯
π Parameters
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.DβD is REAL array, dimension (N). on entry, the n diagonal elements of the tridiagonal matrixA. on exit, the n diagonal elements of the diagonal matrixDfrom the factorizationA = L*D*L**T.EβE is REAL array, dimension (N-1). on entry, the (n-1) subdiagonal elements of the tridiagonal matrixA. on exit, the (n-1) subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Tfactorization ofA. (Ecan also be regarded as the superdiagonal of the unit bidiagonal factorUfrom theU**T*D*Ufactorization ofA.) same parenthetical, still real, still iconic π¦BβB is REAL array, dimension (LDB,NRHS). on entry, the N-by-NRHS right hand side matrixB. on exit, ifINFO = 0, the N-by-NRHS solution matrixX.LDBβLDB is INTEGER. the leading dimension of the arrayB.LDB >= max(1,N).INFOβINFO is INTEGER:= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value π> 0: ifINFO = i, the leading principal minor of order i is not positive, and the solution has not been computed. the factorization has not been completed unlessi = N. π
πΈ Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 113 of file sptsv.f.
subroutine zptsv
subroutine zptsv (integer n, integer nrhs, double precision, dimension( * )
d, complex*16, dimension( * ) e, complex*16, dimension( ldb, * ) b,
integer ldb, integer info)
ZPTSV computes the solution to system of linear equations A * X = B for PT matrices β¨
π Purpose
ZPTSV computes 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. double precision complex, aka the final boss of the tridiagonal family π
A is factored as A = L*D*L**H, and the factored form of A is then used to solve the system of equations. periodt. π
π Parameters
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.DβD is DOUBLE PRECISION array, dimension (N). on entry, the n diagonal elements of the tridiagonal matrixA. on exit, the n diagonal elements of the diagonal matrixDfrom the factorizationA = L*D*L**H. note thatDstays real even though everything around her is complex β she's the grounded one πEβE is COMPLEX*16 array, dimension (N-1). on entry, the (n-1) subdiagonal elements of the tridiagonal matrixA. on exit, the (n-1) subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Hfactorization ofA.Ecan also be regarded as the superdiagonal of the unit bidiagonal factorUfrom theU**H*D*Ufactorization ofA.BβB is COMPLEX*16 array, dimension (LDB,NRHS). on entry, the N-by-NRHS right hand side matrixB. on exit, ifINFO = 0, the N-by-NRHS solution matrixX. bestie she solved it in complex double π«ΆLDBβLDB is INTEGER. the leading dimension of the arrayB.LDB >= max(1,N).INFOβINFO is INTEGER:= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value π> 0: ifINFO = i, the leading principal minor of order i is not positive, and the solution has not been computed. the factorization has not been completed unlessi = N. screaming, crying, throwing up π
πΈ Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 114 of file zptsv.f.
π Author π
generated automatically by Doxygen for LAPACK from the source code. yes, a robot wrote this and we're all just living in its house π€π
okay that's the whole page bestie, go forth and solve your tridiagonal systems π
β¨ β this little doc-drop is from LAPACK, Version 3.12.0, filed under ptsv(3). mwah π«Άπ
π¦ 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