Commit 4a581eef authored by Matti Picus's avatar Matti Picus Committed by Stefan Behnel

BUG: revert numpy.pxd to 0.29.13 (GH-3114)

parent ca8763a2
...@@ -244,27 +244,14 @@ cdef extern from "numpy/arrayobject.h": ...@@ -244,27 +244,14 @@ cdef extern from "numpy/arrayobject.h":
cdef: cdef:
# Only taking a few of the most commonly used and stable fields. # Only taking a few of the most commonly used and stable fields.
# One should use PyArray_* macros instead to access the C fields.
char *data char *data
dtype descr int ndim "nd"
npy_intp *shape "dimensions"
npy_intp *strides
dtype descr # deprecated since NumPy 1.7 !
PyObject* base PyObject* base
@property
cdef int ndim(self):
return PyArray_NDIM(self)
@property
cdef npy_intp *shape(self):
return PyArray_DIMS(self)
@property
cdef npy_intp *strides(self):
return PyArray_STRIDES(self)
@property
cdef npy_intp size(self):
return PyArray_SIZE(ndarray)
# Note: This syntax (function definition in pxd files) is an # Note: This syntax (function definition in pxd files) is an
# experimental exception made for __getbuffer__ and __releasebuffer__ # experimental exception made for __getbuffer__ and __releasebuffer__
# -- the details of this may change. # -- the details of this may change.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment