main.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2019, CNRS
3  * Copyright 2018-2020, INRIA
4  */
5 
6 #include "eigenpy/eigenpy.hpp"
7 #include "eigenpy/version.hpp"
8 #include "eigenpy/geometry.hpp"
9 
11 
15 
17 
18 #include <boost/python/scope.hpp>
19 
20 using namespace eigenpy;
21 
23 {
24  namespace bp = boost::python;
25  enableEigenPy();
26 
27  bp::scope().attr("__version__") = eigenpy::printVersion();
28  bp::scope().attr("__raw_version__") = bp::str(EIGENPY_VERSION);
29  bp::def("checkVersionAtLeast",&eigenpy::checkVersionAtLeast,
30  bp::args("major_version","minor_version","patch_version"),
31  "Checks if the current version of EigenPy is at least the version provided by the input arguments.");
32 
36 
38 
39  {
40  bp::scope solvers = boost::python::class_<SolversScope>("solvers");
41  exposeSolvers();
43 
44  register_symbolic_link_to_registered_type<Eigen::ComputationInfo>();
45  }
46 
47  {
48  using namespace Eigen;
49 
50  bp::def("is_approx",(bool (*)(const Eigen::MatrixBase<MatrixXd> &, const Eigen::MatrixBase<MatrixXd> &, const double &))&is_approx<MatrixXd,MatrixXd>,
51  bp::args("A","B","prec"),
52  "Returns True if A is approximately equal to B, within the precision determined by prec.");
53 
54  bp::def("is_approx",(bool (*)(const Eigen::MatrixBase<MatrixXd> &, const Eigen::MatrixBase<MatrixXd> &))&is_approx<MatrixXd,MatrixXd>,
55  bp::args("A","B"),
56  "Returns True if A is approximately equal to B.");
57  }
58 
60 }
bool EIGENPY_DLLAPI checkVersionAtLeast(unsigned int major_version, unsigned int minor_version, unsigned int patch_version)
Checks if the current version of EigenPy is at least the version provided by the input arguments...
Definition: version.cpp:23
void EIGENPY_DLLAPI exposeQuaternion()
Definition: quaternion.cpp:14
void exposeComputationInfo()
void EIGENPY_DLLAPI exposePreconditioners()
Definition: complex.cpp:7
void EIGENPY_DLLAPI enableEigenPy()
Definition: eigenpy.cpp:29
void EIGENPY_DLLAPI exposeSolvers()
void EIGENPY_DLLAPI exposeDecompositions()
std::string EIGENPY_DLLAPI printVersion(const std::string &delimiter=".")
Returns the current version of EigenPy as a string using the following standard: EIGENPY_MINOR_VERSIO...
Definition: version.cpp:13
BOOST_PYTHON_MODULE(eigenpy)
Definition: main.cpp:22
void EIGENPY_DLLAPI exposeGeometryConversion()
void EIGENPY_DLLAPI exposeAngleAxis()
Definition: angle-axis.cpp:14


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Apr 17 2021 02:37:59