5 #ifndef __eigenpy_numpy_type_hpp__ 6 #define __eigenpy_numpy_type_hpp__ 32 template<
typename Scalar>
40 template<
typename Scalar>
80 operator bp::object () {
return getInstance().CurrentNumpyType; }
82 static bp::object make(PyArrayObject* pyArray,
bool copy =
false);
84 static bp::object make(PyObject* pyObj,
bool copy =
false);
86 static void setNumpyType(bp::object & obj);
88 static void sharedMemory(
const bool value);
90 static bool sharedMemory();
92 static void switchToNumpyArray();
94 static void switchToNumpyMatrix();
98 static bp::object getNumpyType();
100 static const PyTypeObject * getNumpyMatrixType();
102 static const PyTypeObject * getNumpyArrayType();
104 static bool isMatrix();
106 static bool isArray();
126 #endif // ifndef __eigenpy_numpy_type_hpp__
bp::object CurrentNumpyType
PyTypeObject * NumpyMatrixType
bool np_type_is_convertible_into_scalar(const int np_type)
PyTypeObject * NumpyArrayType