5 #ifndef __eigenpy_numpy_type_hpp__ 6 #define __eigenpy_numpy_type_hpp__ 18 template <
typename Scalar>
22 return np_type == Register::getTypeCode<Scalar>();
51 static bp::object make(PyArrayObject* pyArray,
bool copy =
false);
53 static bp::object make(PyObject* pyObj,
bool copy =
false);
55 static void sharedMemory(
const bool value);
57 static bool sharedMemory();
59 static bp::object getNumpyType();
61 static const PyTypeObject* getNumpyArrayType();
76 #endif // ifndef __eigenpy_numpy_type_hpp__ ReturnMatrix copy(const Eigen::MatrixBase< Matrix > &mat)
bp::object NumpyArrayObject
bool np_type_is_convertible_into_scalar(const int np_type)
PyTypeObject * NumpyArrayType