Skip to content
Snippets Groups Projects
Verified Commit 0d32f041 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: add more size for default Matrix base types

parent 81e364c9
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,13 @@ namespace boost { namespace python { namespace detail { ...@@ -29,6 +29,13 @@ namespace boost { namespace python { namespace detail {
std::size_t, value = sizeof(MatType)); std::size_t, value = sizeof(MatType));
}; };
template<class MatType>
struct referent_size<Eigen::MatrixBase<MatType> >
{
BOOST_STATIC_CONSTANT(
std::size_t, value = sizeof(MatType));
};
template<class MatType> template<class MatType>
struct referent_size<Eigen::EigenBase<MatType>&> struct referent_size<Eigen::EigenBase<MatType>&>
{ {
...@@ -36,6 +43,13 @@ namespace boost { namespace python { namespace detail { ...@@ -36,6 +43,13 @@ namespace boost { namespace python { namespace detail {
std::size_t, value = sizeof(MatType)); std::size_t, value = sizeof(MatType));
}; };
template<class MatType>
struct referent_size<Eigen::EigenBase<MatType> >
{
BOOST_STATIC_CONSTANT(
std::size_t, value = sizeof(MatType));
};
}}} }}}
namespace eigenpy namespace eigenpy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment