#include <LuSolver.hpp>
Public Member Functions | |
void | solve (const ublas::compressed_matrix< float_t > &eqs, const ublas::vector< float_t > &rhs, ublas::vector< float_t > &result) const |
This class implements a conjugated gradients solver by interfacing SPOOLES.
void imaging::LuSolver::solve | ( | const ublas::compressed_matrix< float_t > & | eqs, | |
const ublas::vector< float_t > & | rhs, | |||
ublas::vector< float_t > & | result | |||
) | const [virtual] |
Solves the system of equations defined by the matrix eqs and the vector rhs and writes the solution to result. The vector result is automatically resized to dimension of the system. If the sizes of the input data are such that the system cannot be solved an Exception is thrown.
Implements imaging::SolverInterface.