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

core: add missing NumpyEquivalentType

parent 7f1e2a3d
No related branches found
No related tags found
No related merge requests found
/*
* Copyright 2020 INRIA
* Copyright 2020-2021 INRIA
*/
#ifndef __eigenpy_numpy_hpp__
......@@ -43,7 +43,11 @@ namespace eigenpy
template <> struct NumpyEquivalentType< std::complex<long double> > { enum { type_code = NPY_CLONGDOUBLE };};
template <> struct NumpyEquivalentType<bool> { enum { type_code = NPY_BOOL };};
template <> struct NumpyEquivalentType<int> { enum { type_code = NPY_INT };};
template <> struct NumpyEquivalentType<unsigned int> { enum { type_code = NPY_UINT };};
template <> struct NumpyEquivalentType<long> { enum { type_code = NPY_LONG };};
template <> struct NumpyEquivalentType<unsigned long> { enum { type_code = NPY_ULONG };};
template <> struct NumpyEquivalentType<int64_t> { enum { type_code = NPY_INT64 };};
// template <> struct NumpyEquivalentType<long long> { enum { type_code = NPY_LONGLONG };};
template<typename Scalar>
bool isNumpyNativeType()
......
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