Main Page
Namespaces
Classes
Files
File List
File Members
include
eigenpy
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
"
13
#include "
eigenpy/scalar-conversion.hpp
"
14
15
#include "
eigenpy/eigen-allocator.hpp
"
16
#include "
eigenpy/eigen-to-python.hpp
"
17
#include "
eigenpy/eigen-from-python.hpp
"
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
72
void
enableEigenPySpecific
()
73
{
74
enableEigenPySpecific<MatType>();
75
}
76
77
template
<
typename
MatType>
78
void
enableEigenPySpecific
()
79
{
80
if
(check_registration<MatType>())
return
;
81
82
// to-python
83
EigenToPyConverter<MatType>::registration
();
84
#if EIGEN_VERSION_AT_LEAST(3,2,0)
85
EigenToPyConverter< Eigen::Ref<MatType>
>::registration();
86
#endif
87
88
// from-python
89
EigenFromPyConverter<MatType>::registration
();
90
}
91
92
}
// namespace eigenpy
93
94
#endif // ifndef __eigenpy_details_hpp__
boost
Definition:
details.hpp:22
eigenpy::EigenFromPyConverter
Definition:
eigen-from-python.hpp:424
eigenpy::enableEigenPySpecific
void enableEigenPySpecific()
Definition:
details.hpp:78
eigen-from-python.hpp
Eigen
Definition:
complex.cpp:7
fwd.hpp
eigenpy
Definition:
angle-axis.hpp:13
eigenpy::EigenToPyConverter
Definition:
eigen-to-python.hpp:116
registration.hpp
eigen-to-python.hpp
eigen-allocator.hpp
scalar-conversion.hpp
exception.hpp
eigenpy.hpp
test_matrix.value
int value
Definition:
test_matrix.py:125
numpy-type.hpp
python
Definition:
python.py:1
eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Apr 17 2021 02:37:59