![]() |
NULAPACK
NUmerical Linear Algebra PACKage
|
Functions | |
| thomas (np.ndarray a, np.ndarray b) | |
| python.thomas.thomas | ( | np.ndarray | a, |
| np.ndarray | b | ||
| ) |
Solve a tridiagonal linear system A * X = B using the Thomas algorithm.
Parameters
----------
a : ndarray
Coefficient matrix (n x n) stored as a full matrix.
b : ndarray
Right-hand side vector (n,)
Returns
-------
x : ndarray
Solution vector
info : int
0 if success, <0 if zero diagonal detected