ConjugateGradient.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2017 CNRS
3  */
4 
5 #ifndef __eigenpy_conjugate_gradient_hpp__
6 #define __eigenpy_conjugate_gradient_hpp__
7 
8 #include <Eigen/IterativeLinearSolvers>
9 
10 #include "eigenpy/fwd.hpp"
12 
13 namespace eigenpy {
14 
15 template <typename ConjugateGradient>
17  : public boost::python::def_visitor<
18  ConjugateGradientVisitor<ConjugateGradient> > {
19  typedef typename ConjugateGradient::MatrixType MatrixType;
20 
21  template <class PyClass>
22  void visit(PyClass& cl) const {
24  .def(bp::init<>("Default constructor"))
25  .def(bp::init<MatrixType>(
26  bp::arg("A"),
27  "Initialize the solver with matrix A for further Ax=b 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(const std::string& name = "ConjugateGradient") {
33  bp::class_<ConjugateGradient, boost::noncopyable>(name.c_str(), bp::no_init)
36  }
37 };
38 
39 } // namespace eigenpy
40 
41 #endif // ifndef __eigenpy_conjugate_gradient_hpp__
IterativeSolverBase.hpp
fwd.hpp
eigenpy::ConjugateGradientVisitor
Definition: ConjugateGradient.hpp:16
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::ConjugateGradientVisitor::MatrixType
ConjugateGradient::MatrixType MatrixType
Definition: ConjugateGradient.hpp:19
setup.name
name
Definition: setup.in.py:179
eigenpy::ConjugateGradientVisitor::expose
static void expose(const std::string &name="ConjugateGradient")
Definition: ConjugateGradient.hpp:32
eigenpy::ConjugateGradientVisitor::visit
void visit(PyClass &cl) const
Definition: ConjugateGradient.hpp:22


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Nov 2 2024 02:14:45