ZPTTS2(3)
π 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)
ZPTTS2solves a tridiagonal system of the formAX=Busing theL D LHfactorization computed byspttrf. π«Ά
πΈ 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
!>
IUPLOisINTEGERπ β she picks which factorization form you're on and whetherEis the superdiagonal of the upper bidiagonal factorUor the subdiagonal of the lower bidiagonal factorL.= 1:A = U**H *D*U, andEis the superdiagonal ofUπ= 0:A = L*D*L**H, andEis the subdiagonal ofLπ
π N π
!> N is INTEGER
!> The order of the tridiagonal matrix A. N >= 0.
!>
NisINTEGERβ the order of the tridiagonal matrixA. 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.
!>
NRHSisINTEGERβ the number of right hand sides, aka how many columns the matrixBhas.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.
!>
Dis aDOUBLE PRECISIONarray, dimension(N)β she holds thendiagonal elements of the diagonal matrixDfrom the factorizationA = U**H *D*UorA = 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.
!>
Eis aCOMPLEX*16array, dimension(N-1)β she's feral but specific:- if
IUPLO = 1, she's the(n-1)superdiagonal elements of the unit bidiagonal factorUfromA = U**H*D*UπΈ - if
IUPLO = 0, she's the(n-1)subdiagonal elements of the unit bidiagonal factorLfromA = L*D*L**HπΈ
- if
π¦ 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.
!>
Bis aCOMPLEX*16array, dimension(LDB,NRHS)β a whole transformation arc π- on entry: the right hand side vectors
Bfor the system of linear equations - on exit: the solution vectors,
Xβ she ate and left no crumbs π
- on entry: the right hand side vectors
π LDB π
!> LDB is INTEGER
!> The leading dimension of the array B. LDB >= max(1,N).
!>
LDBisINTEGERβ the leading dimension of the arrayB, and it's gotta beLDB >= 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
- 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