18 :
public boost::python::def_visitor<
19 ConjugateGradientVisitor<ConjugateGradient>> {
20 typedef typename ConjugateGradient::MatrixType MatrixType;
22 template <
class PyClass>
23 void visit(PyClass& cl)
const {
25 .def(bp::init<>(
"Default constructor"))
26 .def(bp::init<MatrixType>(
28 "Initialize the solver with matrix A for further Ax=b solving.\n" 29 "This constructor is a shortcut for the default constructor " 30 "followed by a call to compute()."));
33 static void expose(
const std::string& name =
"ConjugateGradient") {
34 bp::class_<ConjugateGradient, boost::noncopyable>(name.c_str(), bp::no_init)