18 :
public boost::python::def_visitor<
19 LeastSquaresConjugateGradientVisitor<LeastSquaresConjugateGradient>> {
20 typedef typename LeastSquaresConjugateGradient::MatrixType MatrixType;
22 template <
class PyClass>
23 void visit(PyClass& cl)
const {
24 cl.def(bp::init<>(
"Default constructor"))
25 .def(bp::init<MatrixType>(
27 "Initialize the solver with matrix A for further || Ax - b || " 29 "This constructor is a shortcut for the default constructor " 30 "followed by a call to compute()."));
34 const std::string& name =
"LeastSquaresConjugateGradient") {
35 bp::class_<LeastSquaresConjugateGradient, boost::noncopyable>(name.c_str(),
39 LeastSquaresConjugateGradient>())