scipy.linalg.lapack.zgtsvx#
- scipy.linalg.lapack.zgtsvx(dl, d, du, b, fact='N', trans='N', dlf=None, df=None, duf=None, du2=None, ipiv=None) = <flapack function zgtsvx>#
Solve a tridiagonal system with condition estimation and error bounds (LAPACK
zgtsvx).- 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
Lto reuse whenfact='F'; otherwise computed.- dfndarray, optional
Diagonal of
Uto reuse whenfact='F'; otherwise computed.- dufndarray, optional
First superdiagonal of
Uto reuse whenfact='F'; otherwise computed.- du2ndarray, optional
Second superdiagonal of
Uto reuse whenfact='F'; otherwise computed.- ipivndarray, optional
Pivot indices to reuse when
fact='F', 1-based asgttrfreturns 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; 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.