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