scipy.linalg.lapack.cpttrs#
- scipy.linalg.lapack.cpttrs(d, e, b, lower=0, overwrite_b=0) = <flapack function cpttrs>#
Solve a positive definite tridiagonal system using the factorization from
pttrf(LAPACKcpttrs).- Parameters:
- dndarray
Diagonal of
Dfrompttrf. Real for every flavor.- endarray
Off-diagonal of
Lfrompttrf.- bndarray
Right-hand side(s) of shape
(n, nrhs).- lowerint, optional
If nonzero, e is read as the subdiagonal of
L; otherwise as the superdiagonal ofU, which is its conjugate. Default is 0. Notepttrfwrites theLform, so reusing its output here needslower=1; the default silently solves a different system. The real flavors have no such argument, drawing no distinction between the two.- overwrite_bint, optional
If nonzero, b may be overwritten in place. Default is 0.
- Returns:
- xndarray
Solution of the system.
- infoint
0 on success; if negative, the
-info-th argument had an illegal value.