scipy.linalg.lapack.cgtsvx#

scipy.linalg.lapack.cgtsvx(dl, d, du, b, fact='N', trans='N', dlf=None, df=None, duf=None, du2=None, ipiv=None) = <flapack function cgtsvx>#

Solve a tridiagonal system with condition estimation and error bounds (LAPACK cgtsvx).

Parameters:
dlndarray

Subdiagonal elements, length n - 1.

dndarray

Diagonal elements, length n.

dundarray

Superdiagonal elements, length n - 1.

bndarray

Right-hand side(s) of shape (n, nrhs).

factstr, optional

'N' to factorize the matrix, 'F' to reuse the dlf, df, duf, du2 and ipiv supplied. Default is 'N'.

transstr, optional

'N', 'T' or 'C' for the system, its transpose, or its conjugate transpose. Default is 'N'.

dlfndarray, optional

Multipliers of L to reuse when fact='F'; otherwise computed.

dfndarray, optional

Diagonal of U to reuse when fact='F'; otherwise computed.

dufndarray, optional

First superdiagonal of U to reuse when fact='F'; otherwise computed.

du2ndarray, optional

Second superdiagonal of U to reuse when fact='F'; otherwise computed.

ipivndarray, optional

Pivot indices to reuse when fact='F', 1-based as gttrf returns them; otherwise computed.

Returns:
dlfndarray

Multipliers defining L.

dfndarray

Diagonal of U.

dufndarray

First superdiagonal of U.

du2ndarray

Second superdiagonal of U.

ipivndarray

Pivot indices, 1-based.

xndarray

Solution of the system.

rcondfloat

Estimate of the reciprocal condition number.

ferrndarray

Estimated forward error bound for each solution vector.

berrndarray

Componentwise relative backward error of each solution vector.

infoint

0 on success; if negative, the -info-th argument had an illegal value; if 0 < info <= n, u[info-1, info-1] is exactly zero; if info = n+1, the matrix is singular to working precision and x may be inaccurate.