5 #ifndef __eigenpy_conjugate_gradient_hpp__
6 #define __eigenpy_conjugate_gradient_hpp__
8 #include <Eigen/IterativeLinearSolvers>
15 template <
typename ConjugateGradient>
17 :
public boost::python::def_visitor<
18 ConjugateGradientVisitor<ConjugateGradient> > {
19 typedef typename ConjugateGradient::MatrixType
MatrixType;
21 template <
class PyClass>
24 .def(bp::init<>(
"Default constructor"))
25 .def(bp::init<MatrixType>(
27 "Initialize the solver with matrix A for further Ax=b solving.\n"
28 "This constructor is a shortcut for the default constructor "
29 "followed by a call to compute()."));
32 static void expose(
const std::string&
name =
"ConjugateGradient") {
33 bp::class_<ConjugateGradient, boost::noncopyable>(
name.c_str(), bp::no_init)
41 #endif // ifndef __eigenpy_conjugate_gradient_hpp__