17 #ifndef __eigenpy_conjugate_gradient_hpp__
18 #define __eigenpy_conjugate_gradient_hpp__
20 #include <Eigen/IterativeLinearSolvers>
27 template <
typename ConjugateGradient>
29 :
public boost::python::def_visitor<
30 ConjugateGradientVisitor<ConjugateGradient> > {
31 typedef typename ConjugateGradient::MatrixType
MatrixType;
33 template <
class PyClass>
36 .def(bp::init<>(
"Default constructor"))
37 .def(bp::init<MatrixType>(
39 "Initialize the solver with matrix A for further Ax=b solving.\n"
40 "This constructor is a shortcut for the default constructor "
41 "followed by a call to compute()."));
44 static void expose(
const std::string&
name =
"ConjugateGradient") {
45 bp::class_<ConjugateGradient, boost::noncopyable>(
name.c_str(), bp::no_init)
52 #endif // ifndef __eigenpy_conjugate_gradient_hpp__