7 #include <patchlevel.h> 20 {
return make((PyObject*)pyArray,copy); }
29 m = bp::object(bp::handle<>(pyObj));
37 PyTypeObject * obj_type = PyType_Check(obj.ptr()) ? reinterpret_cast<PyTypeObject*>(obj.ptr()) : obj.ptr()->ob_type;
103 #if PY_MAJOR_VERSION >= 3 110 NumpyMatrixType =
reinterpret_cast<PyTypeObject*
>(NumpyMatrixObject.ptr());
static bool sharedMemory()
bp::object NumpyArrayObject
static void switchToNumpyMatrix()
static bp::object make(PyArrayObject *pyArray, bool copy=false)
static const PyTypeObject * getNumpyArrayType()
bp::object CurrentNumpyType
static bp::object getNumpyType()
static void setNumpyType(bp::object &obj)
static NP_TYPE & getType()
PyTypeObject * NumpyMatrixType
PyTypeObject * NumpyArrayType
static const PyTypeObject * getNumpyMatrixType()
static NumpyType & getInstance()
static void switchToNumpyArray()
bp::object NumpyMatrixObject