Skip to content

Commit 0d32f04

Browse files
committed
core: add more size for default Matrix base types
1 parent 81e364c commit 0d32f04

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

include/eigenpy/details.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,27 @@ namespace boost { namespace python { namespace detail {
2929
std::size_t, value = sizeof(MatType));
3030
};
3131

32+
template<class MatType>
33+
struct referent_size<Eigen::MatrixBase<MatType> >
34+
{
35+
BOOST_STATIC_CONSTANT(
36+
std::size_t, value = sizeof(MatType));
37+
};
38+
3239
template<class MatType>
3340
struct referent_size<Eigen::EigenBase<MatType>&>
3441
{
3542
BOOST_STATIC_CONSTANT(
3643
std::size_t, value = sizeof(MatType));
3744
};
3845

46+
template<class MatType>
47+
struct referent_size<Eigen::EigenBase<MatType> >
48+
{
49+
BOOST_STATIC_CONSTANT(
50+
std::size_t, value = sizeof(MatType));
51+
};
52+
3953
}}}
4054

4155
namespace eigenpy

0 commit comments

Comments
 (0)