Class that keeps LU factorization (and permutation); using column pivoting. More...
#include <lu.hpp>
Collaboration diagram for mtl::matrix::lu_solver< Matrix >:
Public Member Functions | |
lu_solver (const Matrix &A, double eps=0) | |
Construct from matrix A and use optionally threshold eps in factorization. | |
template<typename VectorIn , typename VectorOut > | |
void | solve (const VectorIn &b, VectorOut &x) const |
Solve A*x = b with factorization from constructor. | |
template<typename VectorIn , typename VectorOut > | |
void | adjoint_solve (const VectorIn &b, VectorOut &x) const |
Solve using LU factorization. |
Detailed Description
template<typename Matrix>
class mtl::matrix::lu_solver< Matrix >
Class that keeps LU factorization (and permutation); using column pivoting.