17 template <
class T,
class ST>
24 template <
class T,
class ST>
37 template <
class T,
class ST>
40 m_max_iteration_limit=1000;
41 m_relative_tolerence=1E-5;
42 m_absolute_tolerence=1E-5;
43 m_store_residuals=
false;
45 this->m_parameters->add(&m_max_iteration_limit,
"max_iteration_limit",
46 "Maximum number of iteration for the solver");
48 this->m_parameters->add(&m_relative_tolerence,
"relative_tolerence",
49 "Relative tolerence of solver");
51 this->m_parameters->add(&m_absolute_tolerence,
"absolute_tolerence",
52 "Absolute tolerence of solver");
54 this->m_parameters->add(&m_store_residuals,
"store_residuals",
55 "Whether to store the residuals");
57 this->m_parameters->add(&m_residuals,
"residuals",
58 "Residuals for each iterations");
61 template <
class T,
class ST>
SGVector< float64_t > m_residuals
abstract template base for all iterative linear solvers such as conjugate gradient (CG) solvers...
Abstract template base class that provides an abstract solve method for linear systems, that takes a linear operator , a vector , solves the system and returns the vector .
all of classes and functions are contained in the shogun namespace
index_t m_max_iteration_limit
void set_const(T const_elem)
virtual ~CIterativeLinearSolver()