numpy.pxd: add NPY_UINT64 and family
authorMark Lodato <lodatom@gmail.com>
Fri, 16 Oct 2009 23:38:02 +0000 (19:38 -0400)
committerMark Lodato <lodatom@gmail.com>
Fri, 16 Oct 2009 23:38:02 +0000 (19:38 -0400)
commit97d7ad39617ec1d61f03b0d88588ecc90afc883a
tree96d4056d119a3f28bbc3d14e501e1c9d521d91c6
parentb028c0f7f1d717546571c82bfa2adad065fa7f05
numpy.pxd: add NPY_UINT64 and family

This provides a fast way to check to see the data type of an ndarray.
For example, to check to see if an integer is 64 bits:

    PyArray_TYPE(a) == NPY_UINT64 or PyArray_TYPE(a) == NPY_INT64
Cython/Includes/numpy.pxd