details.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2019, CNRS
3  * Copyright 2018-2020, INRIA
4  */
5 
6 #ifndef __eigenpy_details_hpp__
7 #define __eigenpy_details_hpp__
8 
9 #include "eigenpy/fwd.hpp"
10 #include "eigenpy/eigenpy.hpp"
11 
12 #include "eigenpy/numpy-type.hpp"
14 
18 
19 #include "eigenpy/registration.hpp"
20 #include "eigenpy/exception.hpp"
21 
22 namespace boost { namespace python { namespace detail {
23 
24  template<class MatType>
25  struct referent_size<Eigen::MatrixBase<MatType>&>
26  {
27  BOOST_STATIC_CONSTANT(
28  std::size_t, value = sizeof(MatType));
29  };
30 
31  template<class MatType>
32  struct referent_size<Eigen::MatrixBase<MatType> >
33  {
34  BOOST_STATIC_CONSTANT(
35  std::size_t, value = sizeof(MatType));
36  };
37 
38  template<class MatType>
39  struct referent_size<Eigen::EigenBase<MatType>&>
40  {
41  BOOST_STATIC_CONSTANT(
42  std::size_t, value = sizeof(MatType));
43  };
44 
45  template<class MatType>
46  struct referent_size<Eigen::EigenBase<MatType> >
47  {
48  BOOST_STATIC_CONSTANT(
49  std::size_t, value = sizeof(MatType));
50  };
51 
52  template<class MatType>
53  struct referent_size<Eigen::PlainObjectBase<MatType>&>
54  {
55  BOOST_STATIC_CONSTANT(
56  std::size_t, value = sizeof(MatType));
57  };
58 
59  template<class MatType>
60  struct referent_size<Eigen::PlainObjectBase<MatType> >
61  {
62  BOOST_STATIC_CONSTANT(
63  std::size_t, value = sizeof(MatType));
64  };
65 
66 }}}
67 
68 namespace eigenpy
69 {
70  template<typename MatType,typename EigenEquivalentType>
71  EIGENPY_DEPRECATED
73  {
74  enableEigenPySpecific<MatType>();
75  }
76 
77  template<typename MatType>
79  {
80  if(check_registration<MatType>()) return;
81 
82  // to-python
84 #if EIGEN_VERSION_AT_LEAST(3,2,0)
86 #endif
87 
88  // from-python
90  }
91 
92 } // namespace eigenpy
93 
94 #endif // ifndef __eigenpy_details_hpp__
void enableEigenPySpecific()
Definition: details.hpp:78
Definition: complex.cpp:7
Definition: python.py:1


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