#include <SolverInterface.hpp>
Public Member Functions | |
virtual void | solve (const ublas::compressed_matrix< float_t > &eqs, const ublas::vector< float_t > &rhs, ublas::vector< float_t > &result) const =0 |
virtual void imaging::SolverInterface::solve | ( | const ublas::compressed_matrix< float_t > & | eqs, | |
const ublas::vector< float_t > & | rhs, | |||
ublas::vector< float_t > & | result | |||
) | const [pure 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.
Implemented in imaging::BiCgStabSolver, imaging::CgSolver, and imaging::LuSolver.