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 equations A * X = B for PT matrices. πŸ’–
  • subroutine dptsv (n, nrhs, d, e, b, ldb, info) β€” DPTSV computes the solution to system of linear equations A * X = B for PT matrices. ✨
  • subroutine sptsv (n, nrhs, d, e, b, ldb, info) β€” SPTSV computes the solution to system of linear equations A * X = B for PT matrices. πŸ¦‹
  • subroutine zptsv (n, nrhs, d, e, b, ldb, info) β€” ZPTSV computes the solution to system of linear equations A * X = B for 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 matrix A. 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 matrix B. NRHS >= 0.
  • D β€” D is REAL array, dimension (N). on entry, the n diagonal elements of the tridiagonal matrix A. on exit, the n diagonal elements of the diagonal matrix D from the factorization A = 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 matrix A. on exit, the (n-1) subdiagonal elements of the unit bidiagonal factor L from the L*D*L**H factorization of A. E can also be regarded as the superdiagonal of the unit bidiagonal factor U from the U**H*D*U factorization of A. she contains multitudes πŸ¦‹
  • B β€” B is COMPLEX array, dimension (LDB,NRHS). on entry, the N-by-NRHS right hand side matrix B. on exit, if INFO = 0, the N-by-NRHS solution matrix X. literally the whole point of the function, main character energy πŸ‘‘
  • LDB β€” LDB is INTEGER. the leading dimension of the array B. LDB >= max(1,N).
  • INFO β€” INFO is INTEGER:
    • = 0: successful exit πŸŽ‰
    • < 0: if INFO = -i, the i-th argument had an illegal value πŸ™ˆ
    • > 0: if INFO = i, the leading principal minor of order i is not positive, and the solution has not been computed. the factorization has not been completed unless i = 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 matrix A. N >= 0.
  • NRHS β€” NRHS is INTEGER. the number of right hand sides, i.e., the number of columns of the matrix B. NRHS >= 0.
  • D β€” D is DOUBLE PRECISION array, dimension (N). on entry, the n diagonal elements of the tridiagonal matrix A. on exit, the n diagonal elements of the diagonal matrix D from the factorization A = L*D*L**T.
  • E β€” E is DOUBLE PRECISION array, dimension (N-1). on entry, the (n-1) subdiagonal elements of the tridiagonal matrix A. on exit, the (n-1) subdiagonal elements of the unit bidiagonal factor L from the L*D*L**T factorization of A. (E can also be regarded as the superdiagonal of the unit bidiagonal factor U from the U**T*D*U factorization of A.) 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 matrix B. on exit, if INFO = 0, the N-by-NRHS solution matrix X. she solved it πŸ’–
  • LDB β€” LDB is INTEGER. the leading dimension of the array B. LDB >= max(1,N).
  • INFO β€” INFO is INTEGER:
    • = 0: successful exit ✨
    • < 0: if INFO = -i, the i-th argument had an illegal value πŸ™ˆ
    • > 0: if INFO = i, the leading principal minor of order i is not positive, and the solution has not been computed. the factorization has not been completed unless i = 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 matrix A. N >= 0.
  • NRHS β€” NRHS is INTEGER. the number of right hand sides, i.e., the number of columns of the matrix B. NRHS >= 0.
  • D β€” D is REAL array, dimension (N). on entry, the n diagonal elements of the tridiagonal matrix A. on exit, the n diagonal elements of the diagonal matrix D from the factorization A = L*D*L**T.
  • E β€” E is REAL array, dimension (N-1). on entry, the (n-1) subdiagonal elements of the tridiagonal matrix A. on exit, the (n-1) subdiagonal elements of the unit bidiagonal factor L from the L*D*L**T factorization of A. (E can also be regarded as the superdiagonal of the unit bidiagonal factor U from the U**T*D*U factorization of A.) same parenthetical, still real, still iconic πŸ¦‹
  • B β€” B is REAL array, dimension (LDB,NRHS). on entry, the N-by-NRHS right hand side matrix B. on exit, if INFO = 0, the N-by-NRHS solution matrix X.
  • LDB β€” LDB is INTEGER. the leading dimension of the array B. LDB >= max(1,N).
  • INFO β€” INFO is INTEGER:
    • = 0: successful exit πŸ’œ
    • < 0: if INFO = -i, the i-th argument had an illegal value πŸ™ˆ
    • > 0: if INFO = i, the leading principal minor of order i is not positive, and the solution has not been computed. the factorization has not been completed unless i = 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 matrix A. N >= 0.
  • NRHS β€” NRHS is INTEGER. the number of right hand sides, i.e., the number of columns of the matrix B. NRHS >= 0.
  • D β€” D is DOUBLE PRECISION array, dimension (N). on entry, the n diagonal elements of the tridiagonal matrix A. on exit, the n diagonal elements of the diagonal matrix D from the factorization A = L*D*L**H. note that D stays 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 matrix A. on exit, the (n-1) subdiagonal elements of the unit bidiagonal factor L from the L*D*L**H factorization of A. E can also be regarded as the superdiagonal of the unit bidiagonal factor U from the U**H*D*U factorization of A.
  • B β€” B is COMPLEX*16 array, dimension (LDB,NRHS). on entry, the N-by-NRHS right hand side matrix B. on exit, if INFO = 0, the N-by-NRHS solution matrix X. bestie she solved it in complex double 🫢
  • LDB β€” LDB is INTEGER. the leading dimension of the array B. LDB >= max(1,N).
  • INFO β€” INFO is INTEGER:
    • = 0: successful exit 🌈
    • < 0: if INFO = -i, the i-th argument had an illegal value πŸ™ˆ
    • > 0: if INFO = i, the leading principal minor of order i is not positive, and the solution has not been computed. the factorization has not been completed unless i = 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