Commit 5bdca351 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #356 from esc/vh/enhance/numpy_dtype

Enhance cython defintion of the Numpy dtype
parents 71535da5 533f0380
......@@ -154,12 +154,15 @@ cdef extern from "numpy/arrayobject.h":
ctypedef class numpy.dtype [object PyArray_Descr]:
# Use PyDataType_* macros when possible, however there are no macros
# for accessing some of the fields, so some are defined. Please
# ask on cython-dev if you need more.
# for accessing some of the fields, so some are defined.
cdef char kind
cdef char type
cdef char byteorder
cdef char flags
cdef int type_num
cdef int itemsize "elsize"
cdef char byteorder
cdef object fields
cdef int alignment
cdef dict fields
cdef tuple names
ctypedef extern class numpy.flatiter [object PyArrayIterObject]:
......
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