ZDTTRSV(l)
β¨ NAME β¨
ZDTTRSV β bestie it solves one of the systems of equations L * X = B, L**T * X = B, or L**H * X = B, π
πΈ SYNOPSIS πΈ
SUBROUTINE ZDTTRSV( UPLO, TRANS, N, NRHS, DL, D, DU, B, LDB, INFO )
CHARACTER UPLO, TRANS
INTEGER INFO, LDB, N, NRHS
COMPLEX*16 B( LDB, * ), D( * ), DL( * ), DU( * )
π PURPOSE π
Okay so here's the tea, bestie: ZDTTRSV solves one of the systems of equations
L * X = B, L**T * X = B, or L**H * X = B,
U * X = B, U**T * X = B, or U**H * X = B,
using the factors of the tridiagonal matrix A from the LU factorization that ZDTTRF computed. It's giving "we already did the hard part, now we just vibe and solve." π¦
π ARGUMENTS π
UPLO(input)CHARACTER*1β tells us whether we're solving withLorU. Choose wisely, no cap.TRANS(input)CHARACTERβ the form of the system of equations, iykyk:= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate transpose)
N(input)INTEGERβ the order of the matrixA. Constraint:N >= 0. π«ΆNRHS(input)INTEGERβ the number of right hand sides, aka the number of columns of the matrixB. Constraint:NRHS >= 0.DL(input)COMPLEX array, dimension(N-1)β the(n-1)multipliers that define the matrixLfrom the LU factorization ofA. πD(input)COMPLEX array, dimension(N)β thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA. Main character entries fr fr.DU(input)COMPLEX array, dimension(N-1)β the(n-1)elements of the first superdiagonal ofU. β¨B(input/output)COMPLEX array, dimension(LDB,NRHS)β on entry, the right hand side matrixB. On exit,Bis overwritten by the solution matrixX. Glow up moment honestly. πLDB(input)INTEGERβ the leading dimension of the arrayB. Constraint:LDB >= max(1,N).INFO(output)INTEGERβ the receipts:= 0:successful exit π< 0:ifINFO = -i, thei-th argument had an illegal value π
Not me warning you that a negative INFO means somebody passed an illegal value β check which argument, bestie, it's literally telling you. π
That's the whole page, bestie β a modified LAPACK routine, version 2.0, dated 12 May 1997. Slay, go solve some tridiagonal systems. π§π
π¦ where this page comes from
- ubuntu jammy: scalapack-doc 1.5-11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms