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

core: template specialization for sized Eigen::{MatrixBase,EigenBase}

parent 2451ff46
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,24 @@
#define GET_PY_ARRAY_TYPE(array) PyArray_ObjectType(reinterpret_cast<PyObject *>(array), 0)
namespace boost { namespace python { namespace detail {
template<class MatType>
struct referent_size<Eigen::MatrixBase<MatType>&>
{
BOOST_STATIC_CONSTANT(
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
{
template <typename SCALAR> struct NumpyEquivalentType {};
......
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