5 #ifndef __eigenpy_numpy_type_hpp__
6 #define __eigenpy_numpy_type_hpp__
18 template <
typename Scalar>
20 const auto scalar_np_code =
23 if (scalar_np_code >= NPY_USERDEF)
24 return np_type == Register::getTypeCode<Scalar>();
26 if (scalar_np_code == np_type)
return true;
49 #if defined _WIN32 || defined __CYGWIN__
88 static bp::object make(PyArrayObject* pyArray,
bool copy =
false);
90 static bp::object make(PyObject* pyObj,
bool copy =
false);
92 static void sharedMemory(
const bool value);
94 static bool sharedMemory();
96 static const PyTypeObject* getNumpyArrayType();
111 #endif // ifndef __eigenpy_numpy_type_hpp__