SHOGUN  4.1.0
IterativeLinearSolver.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2013 Soumyajit De
8  */
9
10 #include <shogun/lib/common.h>
11 #include <shogun/base/Parameter.h>
13
14 namespace shogun
15 {
16
17 template <class T, class ST>
19  : CLinearSolver<T, ST>()
20  {
21  init();
22  }
23
24 template <class T, class ST>
26  : CLinearSolver<T, ST>()
27  {
28  init();
29  m_store_residuals=store_residuals;
31  {
34  }
35  }
36
37 template <class T, class ST>
39  {
40  m_max_iteration_limit=1000;
41  m_relative_tolerence=1E-5;
42  m_absolute_tolerence=1E-5;
43  m_store_residuals=false;
44
46  "Maximum number of iteration for the solver");
47
49  "Relative tolerence of solver");
50
52  "Absolute tolerence of solver");
53
55  "Whether to store the residuals");
56
58  "Residuals for each iterations");
59  }
60
61 template <class T, class ST>
63  {
64  }
65
68 }
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 .
Definition: LinearSolver.h:25
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
void set_const(T const_elem)
Definition: SGVector.cpp:152

SHOGUN Machine Learning Toolbox - Documentation