17 #ifndef __eigenpy_conjugate_gradient_hpp__ 18 #define __eigenpy_conjugate_gradient_hpp__ 21 #include <Eigen/IterativeLinearSolvers> 30 template<
typename ConjugateGradient>
32 :
public boost::python::def_visitor< ConjugateGradientVisitor<ConjugateGradient> >
34 typedef typename ConjugateGradient::MatrixType
MatrixType;
36 template<
class PyClass>
41 .def(bp::init<>(
"Default constructor"))
42 .def(bp::init<MatrixType>(bp::arg(
"A"),
"Initialize the solver with matrix A for further Ax=b solving.\n" 43 "This constructor is a shortcut for the default constructor followed by a call to compute()."))
48 static void expose(
const std::string &
name =
"ConjugateGradient")
50 bp::class_<ConjugateGradient,boost::noncopyable>(
name.c_str(),
61 #endif // ifndef __eigenpy_conjugate_gradient_hpp__ void visit(PyClass &cl) const
static void expose(const std::string &name="ConjugateGradient")
ConjugateGradient::MatrixType MatrixType