bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / cgtsvx
lapack_function
scipy.linalg._flapack:cgtsvx
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def cgtsvx(dl, d, du, b, fact = N, trans = N, dlf = None, df = None, duf = None, du2 = None, ipiv = None)Summary
Solve a tridiagonal system with condition estimation and error bounds (LAPACK cgtsvx).
Parameters
dl: ndarraySubdiagonal elements, length
n - 1.d: ndarrayDiagonal elements, length
n.du: ndarraySuperdiagonal elements, length
n - 1.b: ndarrayRight-hand side(s) of shape
(n, nrhs).fact: str, optional'N'to factorize the matrix,'F'to reuse thedlf,df,duf,du2andipivsupplied. Default is'N'.trans: str, optional'N','T'or'C'for the system, its transpose, or its conjugate transpose. Default is'N'.dlf: ndarray, optionalMultipliers of
Lto reuse whenfact='F'; otherwise computed.df: ndarray, optionalDiagonal of
Uto reuse whenfact='F'; otherwise computed.duf: ndarray, optionalFirst superdiagonal of
Uto reuse whenfact='F'; otherwise computed.du2: ndarray, optionalSecond superdiagonal of
Uto reuse whenfact='F'; otherwise computed.ipiv: ndarray, optionalPivot indices to reuse when
fact='F', 1-based asgttrfreturns them; otherwise computed.
Returns
dlf: ndarrayMultipliers defining
L.df: ndarrayDiagonal of
U.duf: ndarrayFirst superdiagonal of
U.du2: ndarraySecond superdiagonal of
U.ipiv: ndarrayPivot indices, 1-based.
x: ndarraySolution of the system.
rcond: floatEstimate of the reciprocal condition number.
ferr: ndarrayEstimated forward error bound for each solution vector.
berr: ndarrayComponentwise relative backward error of each solution vector.
info: int0 on success; if negative, the
-info-th argument had an illegal value; if0 < info <= n,u[info-1, info-1]is exactly zero; ifinfo = n+1, the matrix is singular to working precision and x may be inaccurate.
Aliases
scipy.linalg._flapack.cgtsvx