Verified Commit d8ee7100 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: set default Scalar type to be an NPY_OBJECT

parent 34126cfb
......@@ -14,7 +14,8 @@ namespace eigenpy
{
namespace bp = boost::python;
template <typename SCALAR> struct NumpyEquivalentType {};
// By default, the Scalar is considered as a Python object
template <typename Scalar> struct NumpyEquivalentType { enum { type_code = NPY_OBJECT };};
template <> struct NumpyEquivalentType<float> { enum { type_code = NPY_FLOAT };};
template <> struct NumpyEquivalentType< std::complex<float> > { enum { type_code = NPY_CFLOAT };};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment