STBTRS(3)
π STBTRS β like, the triangular band solver, bestie β¨
okay so real talk, this page lives at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/stbtrs.f and it's from the LAPACK library functions manual, and honestly? it's giving "linear algebra but make it fashion" π
β¨ SYNOPSIS β¨
Functions/Subroutines, babes:
subroutine STBTRS (uplo, trans, diag, n, kd, nrhs, ab, ldab, b, ldb,
info)
STBTRS
π¦ Function/Subroutine Documentation π¦
subroutine STBTRS (character uplo, character trans, character diag, integer
n, integer kd, integer nrhs, real, dimension( ldab, * ) ab, integer
ldab, real, dimension( ldb, * ) b, integer ldb, integer info)
yep, that's the whole glow-up, STBTRS, right there in the function signature π
π Purpose π
so here's the vibe check, straight from the source:
!>
!> STBTRS solves a triangular system of the form
!>
!> A * X = B or A**T * X = B,
!>
!> where A is a triangular band matrix of order N, and B is an
!> N-by NRHS matrix. A check is made to verify that A is nonsingular.
!>
like, it literally solves your triangular system AND double-checks that A isn't singular. main character energy fr fr π
πΈ Parameters πΈ
okay bestie, here's the cast of characters, and yes every single one matters:
UPLOβUPLO is CHARACTER*1, and it tells you which triangle ofAwe're working with:= 'U': A is upper triangular;= 'L': A is lower triangular.
TRANSβTRANS is CHARACTER*1, and it specifies the form the system of equations takes:= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate transpose = Transpose)
DIAGβDIAG is CHARACTER*1:= 'N': A is non-unit triangular;= 'U': A is unit triangular.
NβN is INTEGER, and it's the order of the matrix A. Constraint:N >= 0. no negative orders, that's a hard pass π€KDβKD is INTEGER, aka the number of superdiagonals or subdiagonals of the triangular band matrix A. Constraint:KD >= 0.NRHSβNRHS is INTEGER, the number of right hand sides, i.e., the number of columns of the matrix B. Constraint:NRHS >= 0.ABβAB is REAL array, dimension (LDAB,N). this is the upper or lower triangular band matrix A, stored in the firstkd+1rows of AB. here's how the j-th column of A lands in the j-th column of the array AB:- if
UPLO = 'U',AB(kd+1+i-j,j) = A(i,j)formax(1,j-kd)<=i<=j; - if
UPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+kd).
- if
and heads up: if DIAG = 'U', the diagonal elements of A are not referenced and are assumed to be 1. so don't come for me about what's in those slots π
LDABβLDAB is INTEGER, the leading dimension of the array AB. Constraint:LDAB >= KD+1.BβB is REAL array, dimension (LDB,NRHS). On entry, the right hand side matrix B. On exit, ifINFO = 0, the solution matrix X. literal transformation arc β¨LDBβLDB is INTEGER, the leading dimension of the array B. Constraint:LDB >= max(1,N).INFOβINFO is INTEGER, the receipts:= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value> 0: ifINFO = i, the i-th diagonal element of A is zero, indicating that the matrix is singular and the solutions X have not been computed π
π§ Author π§
the icons behind it all:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β Definition location β
Definition at line 144 of file stbtrs.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. β yes she was auto-generated and she still ate π
ngl the short version: give her a triangular band matrix, a right hand side, and a dream, and she'll hand you back the solution β if the matrix isn't singular. otherwise INFO > 0 and it's a no from her π
LAPACK Β· Version 3.12.0 Β· file `/home/abui...RC/stbtrs.f(3) β mwah, that's the page, ily, go solve something triangular π«Άππ
π¦ 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