main.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2019, CNRS
3  * Copyright 2018-2023, INRIA
4  */
5 
6 #include <boost/python/scope.hpp>
7 
10 #include "eigenpy/eigenpy.hpp"
11 #include "eigenpy/geometry.hpp"
14 #include "eigenpy/std-vector.hpp"
16 #include "eigenpy/version.hpp"
17 
18 using namespace eigenpy;
19 
21  enableEigenPy();
22 
23  bp::scope().attr("__version__") = eigenpy::printVersion();
24  bp::scope().attr("__eigen_version__") = eigenpy::printEigenVersion();
25  bp::scope().attr("__raw_version__") = bp::str(EIGENPY_VERSION);
26  bp::def("checkVersionAtLeast", &eigenpy::checkVersionAtLeast,
27  bp::args("major_version", "minor_version", "patch_version"),
28  "Checks if the current version of EigenPy is at least the version "
29  "provided by the input arguments.");
30 
31  bp::def("SimdInstructionSetsInUse", &Eigen::SimdInstructionSetsInUse,
32  "Get the set of SIMD instructions in use with Eigen.");
33 
38 
40 
41  {
42  bp::scope solvers = boost::python::class_<SolversScope>("solvers");
43  exposeSolvers();
45 
46  register_symbolic_link_to_registered_type<Eigen::ComputationInfo>();
47  }
48 
49  {
50  using namespace Eigen;
51 
52  bp::def("is_approx",
53  (bool (*)(const Eigen::MatrixBase<MatrixXd> &,
54  const Eigen::MatrixBase<MatrixXd> &, const double &)) &
55  is_approx<MatrixXd, MatrixXd>,
56  (bp::arg("A"), bp::arg("B"), bp::arg("prec") = 1e-12),
57  "Returns True if A is approximately equal to B, within the "
58  "precision determined by prec.");
59  }
60 
62 }
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:27
void EIGENPY_DLLAPI exposeQuaternion()
Definition: quaternion.cpp:12
void exposeComputationInfo()
void EIGENPY_DLLAPI exposePreconditioners()
Definition: complex.cpp:7
void EIGENPY_DLLAPI enableEigenPy()
Definition: eigenpy.cpp:29
BOOST_PYTHON_MODULE(eigenpy_pywrap)
Definition: main.cpp:20
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
void EIGENPY_DLLAPI exposeGeometryConversion()
void EIGENPY_DLLAPI exposeStdVector()
Definition: std-vector.cpp:10
std::string EIGENPY_DLLAPI printEigenVersion(const std::string &delimiter=".")
Returns the current version of Eigen3 as a string using the following standard: EIGEN_MINOR_VERSION.EIGEN_MINOR_VERSION.EIGEN_PATCH_VERSION.
Definition: version.cpp:20
void EIGENPY_DLLAPI exposeAngleAxis()
Definition: angle-axis.cpp:10


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Jun 2 2023 02:10:26