diff options
author | jbrockmendel <jbrockmendel@gmail.com> | 2020-05-18 13:09:45 -0700 |
---|---|---|
committer | jbrockmendel <jbrockmendel@gmail.com> | 2020-05-21 15:03:45 -0700 |
commit | 82684487cacc3ce76aba9fa1a0f1f1a8bb17fa21 (patch) | |
tree | 6ce24eb35494bdd236002e5a214157243927751a | |
parent | 76ead088453510c9e7a339b899b1dbd2ae3ed4d4 (diff) | |
download | numpy-82684487cacc3ce76aba9fa1a0f1f1a8bb17fa21.tar.gz |
Missing declarations
-rw-r--r-- | numpy/__init__.pxd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/numpy/__init__.pxd b/numpy/__init__.pxd index f34d0f9d7..bd7f169f5 100644 --- a/numpy/__init__.pxd +++ b/numpy/__init__.pxd @@ -692,6 +692,8 @@ cdef extern from "numpy/arrayobject.h": cdef extern from "numpy/ndarrayobject.h": PyTypeObject PyTimedeltaArrType_Type PyTypeObject PyDatetimeArrType_Type + ctypedef int64_t npy_timedelta + ctypedef int64_t npy_datetime cdef extern from "numpy/arrayscalars.h": ctypedef struct PyDatetimeScalarObject: @@ -699,11 +701,32 @@ cdef extern from "numpy/arrayscalars.h": npy_datetime obval PyArray_DatetimeMetaData obmeta + ctypedef struct PyTimedeltaScalarObject: + # PyObject_HEAD + npy_timedelta obval + PyArray_DatetimeMetaData obmeta + cdef extern from "numpy/ndarraytypes.h": ctypedef struct PyArray_DatetimeMetaData: NPY_DATETIMEUNIT base int64_t num + ctypedef enum NPY_DATETIMEUNIT: + NPY_FR_Y + NPY_FR_M + NPY_FR_W + NPY_FR_D + NPY_FR_B + NPY_FR_h + NPY_FR_m + NPY_FR_s + NPY_FR_ms + NPY_FR_us + NPY_FR_ns + NPY_FR_ps + NPY_FR_fs + NPY_FR_as + # Typedefs that matches the runtime dtype objects in # the numpy module. |