ZPTTS2(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’… ZPTTS2(3) β€” like, the whole glow-up

okay so bestie, buckle up, because this is a page from the Library Functions Manual and it's about to be your new fave ✨ It's ZPTTS2, and she solves things. Literally. Tridiagonal things. πŸ’–


✨ SYNOPSIS ✨

Functions/Subroutines πŸŽ€

subroutine ZPTTS2 (iuplo, n, nrhs, d, e, b, ldb)
ZPTTS2 solves a tridiagonal system of the form AX=B using the L D LH factorization computed by spttrf. 🫢

🌸 Function/Subroutine Documentation 🌸

πŸ’« the actual signature, no cap πŸ’«

subroutine ZPTTS2 (integer iuplo, integer n, integer nrhs, double precision,
    dimension( * ) d, complex*16, dimension( * ) e, complex*16, dimension(
    ldb, * ) b, integer ldb)

ZPTTS2 solves a tridiagonal system of the form AX=B using the L D LH factorization computed by spttrf. (yes she says it twice, she's consistent, we love that for her πŸ‘‘)

πŸ¦‹ Purpose πŸ¦‹

!>
!> ZPTTS2 solves a tridiagonal system of the form
!>    A * X = B
!> using the factorization A = U**H *D*U or A = L*D*L**H computed by ZPTTRF.
!> D is a diagonal matrix specified in the vector D, U (or L) is a unit
!> bidiagonal matrix whose superdiagonal (subdiagonal) is specified in
!> the vector E, and X and B are N by NRHS matrices.
!>

so like, A * X = B, she factors it as A = U**H *D*U or A = L*D*L**H (courtesy of ZPTTRF), D is the diagonal vibe living in the vector D, U (or L) is a unit bidiagonal queen whose superdiagonal (or subdiagonal) is chillin' in the vector E, and X and B are N by NRHS matrices. iconic. ✨


πŸŽ€ Parameters πŸŽ€

🌈 IUPLO 🌈

!>          IUPLO is INTEGER
!>          Specifies the form of the factorization and whether the
!>          vector E is the superdiagonal of the upper bidiagonal factor
!>          U or the subdiagonal of the lower bidiagonal factor L.
!>          = 1:  A = U**H *D*U, E is the superdiagonal of U
!>          = 0:  A = L*D*L**H, E is the subdiagonal of L
!>
  • IUPLO is INTEGER πŸ‘‘ β€” she picks which factorization form you're on and whether E is the superdiagonal of the upper bidiagonal factor U or the subdiagonal of the lower bidiagonal factor L.
    • = 1: A = U**H *D*U, and E is the superdiagonal of U πŸ’œ
    • = 0: A = L*D*L**H, and E is the subdiagonal of L πŸ’œ

πŸ“ N πŸ“

!>          N is INTEGER
!>          The order of the tridiagonal matrix A.  N >= 0.
!>
  • N is INTEGER β€” the order of the tridiagonal matrix A. And bestie, N >= 0. fr fr. ✨

🧚 NRHS 🧚

!>          NRHS is INTEGER
!>          The number of right hand sides, i.e., the number of columns
!>          of the matrix B.  NRHS >= 0.
!>
  • NRHS is INTEGER β€” the number of right hand sides, aka how many columns the matrix B has. NRHS >= 0, no exceptions πŸ’…

πŸ’€ D πŸ’€

!>          D is DOUBLE PRECISION array, dimension (N)
!>          The n diagonal elements of the diagonal matrix D from the
!>          factorization A = U**H *D*U or A = L*D*L**H.
!>
  • D is a DOUBLE PRECISION array, dimension (N) β€” she holds the n diagonal elements of the diagonal matrix D from the factorization A = U**H *D*U or A = L*D*L**H. main character energy, honestly 🌟

πŸ”₯ E πŸ”₯

!>          E is COMPLEX*16 array, dimension (N-1)
!>          If IUPLO = 1, the (n-1) superdiagonal elements of the unit
!>          bidiagonal factor U from the factorization A = U**H*D*U.
!>          If IUPLO = 0, the (n-1) subdiagonal elements of the unit
!>          bidiagonal factor L from the factorization A = L*D*L**H.
!>
  • E is a COMPLEX*16 array, dimension (N-1) β€” she's feral but specific:
    • if IUPLO = 1, she's the (n-1) superdiagonal elements of the unit bidiagonal factor U from A = U**H*D*U 🌸
    • if IUPLO = 0, she's the (n-1) subdiagonal elements of the unit bidiagonal factor L from A = L*D*L**H 🌸

πŸ¦‹ B πŸ¦‹

!>          B is COMPLEX*16 array, dimension (LDB,NRHS)
!>          On entry, the right hand side vectors B for the system of
!>          linear equations.
!>          On exit, the solution vectors, X.
!>
  • B is a COMPLEX*16 array, dimension (LDB,NRHS) β€” a whole transformation arc 😭
    • on entry: the right hand side vectors B for the system of linear equations
    • on exit: the solution vectors, X β€” she ate and left no crumbs πŸ’…

πŸŽ€ LDB πŸŽ€

!>          LDB is INTEGER
!>          The leading dimension of the array B.  LDB >= max(1,N).
!>
  • LDB is INTEGER β€” the leading dimension of the array B, and it's gotta be LDB >= max(1,N). periodt. πŸ‘‘

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

the whole squad, we stan 🫢

Definition at line 112 of file zptts2.f. ✨


πŸ’– Author (the meta one) πŸ’–

Generated automatically by Doxygen for LAPACK from the source code. not a human, just vibes πŸ€–πŸ’…


🧚 quick heads-up bestie: shoutout to the NAME section of the original, which was just the path /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/zptts2.f β€” she's literally just a file path, that's her whole identity, and honestly? relatable. πŸ™ˆ

and that's the page!! πŸ’– LAPACK, Version 3.12.0, dated alongside /home/abui...RC/zptts2.f(3) β€” slay, bye, drink water πŸ“

πŸ“¦ where this page comes from