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

core: move NumpyEquivalentType to the dedicated file

parent 7fc0f5e2
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,17 @@
namespace eigenpy
{
namespace bp = boost::python;
template <typename SCALAR> struct NumpyEquivalentType {};
template <> struct NumpyEquivalentType<float> { enum { type_code = NPY_FLOAT };};
template <> struct NumpyEquivalentType< std::complex<float> > { enum { type_code = NPY_CFLOAT };};
template <> struct NumpyEquivalentType<double> { enum { type_code = NPY_DOUBLE };};
template <> struct NumpyEquivalentType< std::complex<double> > { enum { type_code = NPY_CDOUBLE };};
template <> struct NumpyEquivalentType<long double> { enum { type_code = NPY_LONGDOUBLE };};
template <> struct NumpyEquivalentType< std::complex<long double> > { enum { type_code = NPY_CLONGDOUBLE };};
template <> struct NumpyEquivalentType<int> { enum { type_code = NPY_INT };};
template <> struct NumpyEquivalentType<long> { enum { type_code = NPY_LONG };};
enum NP_TYPE
{
......
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