LeastSquaresConjugateGradient.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2017-2018 CNRS
3  */
4 
5 #ifndef __eigenpy_least_square_conjugate_gradient_hpp__
6 #define __eigenpy_least_square_conjugate_gradient_hpp__
7 
8 #include <Eigen/IterativeLinearSolvers>
9 
10 #include "eigenpy/fwd.hpp"
12 
13 namespace eigenpy {
14 
15 template <typename LeastSquaresConjugateGradient>
17  : public boost::python::def_visitor<LeastSquaresConjugateGradientVisitor<
18  LeastSquaresConjugateGradient> > {
19  typedef Eigen::MatrixXd MatrixType;
20 
21  template <class PyClass>
22  void visit(PyClass& cl) const {
23  cl.def(bp::init<>("Default constructor"))
24  .def(bp::init<MatrixType>(
25  bp::arg("A"),
26  "Initialize the solver with matrix A for further || Ax - b || "
27  "solving.\n"
28  "This constructor is a shortcut for the default constructor "
29  "followed by a call to compute()."));
30  }
31 
32  static void expose() {
33  bp::class_<LeastSquaresConjugateGradient, boost::noncopyable>(
34  "LeastSquaresConjugateGradient", bp::no_init)
37  LeastSquaresConjugateGradient>())
39  }
40 };
41 
42 } // namespace eigenpy
43 
44 #endif // ifndef __eigenpy_least_square_conjugate_gradient_hpp__
eigenpy::LeastSquaresConjugateGradientVisitor::expose
static void expose()
Definition: LeastSquaresConjugateGradient.hpp:32
IterativeSolverBase.hpp
fwd.hpp
eigenpy::LeastSquaresConjugateGradientVisitor::MatrixType
Eigen::MatrixXd MatrixType
Definition: LeastSquaresConjugateGradient.hpp:19
eigenpy::IterativeSolverVisitor
Definition: IterativeSolverBase.hpp:14
eigenpy
Definition: alignment.hpp:14
eigenpy::IdVisitor
Add the Python method id to retrieving a unique id for a given object exposed with Boost....
Definition: id.hpp:18
eigenpy::LeastSquaresConjugateGradientVisitor::visit
void visit(PyClass &cl) const
Definition: LeastSquaresConjugateGradient.hpp:22
eigenpy::LeastSquaresConjugateGradientVisitor
Definition: LeastSquaresConjugateGradient.hpp:16


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Jun 14 2024 02:15:58