BLAS/SRC/ztpsv.f(3)
π BLAS/SRC/ztpsv.f π
okay bestie, welcome to the ztpsv page from LAPACK's BLAS source β it lives at BLAS/SRC/ztpsv.f and it's lowkey one of the most useful little solvers in the whole triangle-squad. let's get into it π¦
β¨ NAME β¨
BLAS/SRC/ztpsv.f β no cap, that's the file, that's the name, that's the whole vibe π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine ztpsv (uplo, trans, diag, n, ap, x, incx)β literally the one and onlyZTPSVπ
π Function/Subroutine Documentation π
subroutine ztpsv (character uplo, character trans, character diag, integer n, complex*16, dimension(*) ap, complex*16, dimension(*) x, integer incx)
ZTPSV
π¦ Purpose π¦
ok so ZTPSV solves one of these systems of equations, and you get to pick which one:
A*x = b, or A**T*x = b, or A**H*x = b,
where b and x are n element vectors and A is an n by n unit, or non-unit, upper or lower triangular matrix, supplied in packed form. packed!! no full 2D array needed, she's efficient like that β¨
BIG WARNING BESTIE π¨ no test for singularity or near-singularity is included in this routine. such tests must be performed before calling this routine. so if your matrix is sus, that's on you, not on her π
π Parameters π
UPLOβUPLOisCHARACTER*1. on entry,UPLOspecifies whether the matrix is an upper or lower triangular matrix, like so:UPLO = 'U'or'u'βAis an upper triangular matrix. β¬οΈUPLO = 'L'or'l'βAis a lower triangular matrix. β¬οΈ
TRANSβTRANSisCHARACTER*1. on entry,TRANSspecifies the equations to be solved, as follows:TRANS = 'N'or'n'βA*x = b.TRANS = 'T'or't'βA**T*x = b.TRANS = 'C'or'c'βA**H*x = b.
DIAGβDIAGisCHARACTER*1. on entry,DIAGspecifies whether or notAis unit triangular, as follows:DIAG = 'U'or'u'βAis assumed to be unit triangular.DIAG = 'N'or'n'βAis not assumed to be unit triangular.
NβNisINTEGER. on entry,Nspecifies the order of the matrixA.Nmust be at least zero. (zero is allowed, she's not gonna judge π«Ά)APβAPisCOMPLEX*16array, dimension at least( ( n*( n + 1 ) )/2 ). before entry withUPLO = 'U'or'u', the arrayAPmust contain the upper triangular matrix packed sequentially, column by column, so thatAP( 1 )containsa( 1, 1 ),AP( 2 )andAP( 3 )containa( 1, 2 )anda( 2, 2 )respectively, and so on. before entry withUPLO = 'L'or'l', the arrayAPmust contain the lower triangular matrix packed sequentially, column by column, so thatAP( 1 )containsa( 1, 1 ),AP( 2 )andAP( 3 )containa( 2, 1 )anda( 3, 1 )respectively, and so on. note that whenDIAG = 'U'or'u', the diagonal elements ofAare not referenced, but are assumed to be unity. π§XβXisCOMPLEX*16array, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). before entry, the incremented arrayXmust contain thenelement right-hand side vectorb. on exit,Xis overwritten with the solution vectorx. π«INCXβINCXisINTEGER. on entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero. not zero, bestie, she said what she said π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Further Details: π
- Level 2 Blas routine.
-- Written on 22-October-1986.- Jack Dongarra, Argonne National Lab.
- Jeremy Du Croz, Nag Central Office.
- Sven Hammarling, Nag Central Office.
- Richard Hanson, Sandia National Labs.
1986!! she's been slaying since before most of us were born, periodt π β¨
π Definition
Definition at line 143 of file ztpsv.f.
β Author β
Generated automatically by Doxygen for LAPACK from the source code. (not a human, just a very diligent little robot π)
and that's the whole page bestie!! no notes, she ate, we love a packed triangular solver with main character energy π¦π
Version 3.12.0 β Tue Nov 28 2023 12:08:41 β BLAS/SRC/ztpsv.f(3) π«Ά mwah, go solve something cute π
π¦ where this page comes from
- centos-stream 10: blas 3.12.0-7.el10 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms