|
numerics 0.1.0
|
Thomas algorithm for tridiagonal systems. More...
Go to the source code of this file.
Namespaces | |
| namespace | num |
Functions | |
| void | num::thomas (const Vector &a, const Vector &b, const Vector &c, const Vector &d, Vector &x, Backend backend=lapack_backend) |
Thomas algorithm for tridiagonal systems.
Solves \(a_{i-1}x_{i-1}+b_i x_i+c_i x_{i+1}=d_i\) in \(O(n)\).
Definition in file thomas.hpp.