Commit ed042a13 authored by Stefan Behnel's avatar Stefan Behnel

Re-add previously removed NumPy C-API functions, following the same change in NumPy.

https://github.com/numpy/numpy/pull/16170/commits/e00d94b70880b1321eff727ac7eb897be7422340
parent 4a85b7e0
...@@ -565,8 +565,8 @@ cdef extern from "numpy/arrayobject.h": ...@@ -565,8 +565,8 @@ cdef extern from "numpy/arrayobject.h":
# more than is probably needed until it can be checked further. # more than is probably needed until it can be checked further.
int PyArray_SetNumericOps (object) int PyArray_SetNumericOps (object)
object PyArray_GetNumericOps () object PyArray_GetNumericOps ()
# int PyArray_INCREF (ndarray) int PyArray_INCREF (ndarray)
# int PyArray_XDECREF (ndarray) int PyArray_XDECREF (ndarray)
void PyArray_SetStringFunction (object, int) void PyArray_SetStringFunction (object, int)
dtype PyArray_DescrFromType (int) dtype PyArray_DescrFromType (int)
object PyArray_TypeObjectFromType (int) object PyArray_TypeObjectFromType (int)
...@@ -644,8 +644,8 @@ cdef extern from "numpy/arrayobject.h": ...@@ -644,8 +644,8 @@ cdef extern from "numpy/arrayobject.h":
#int PyArray_CompareUCS4 (npy_ucs4 *, npy_ucs4 *, register size_t) #int PyArray_CompareUCS4 (npy_ucs4 *, npy_ucs4 *, register size_t)
int PyArray_RemoveSmallest (broadcast) int PyArray_RemoveSmallest (broadcast)
int PyArray_ElementStrides (object) int PyArray_ElementStrides (object)
# void PyArray_Item_INCREF (char *, dtype) void PyArray_Item_INCREF (char *, dtype)
# void PyArray_Item_XDECREF (char *, dtype) void PyArray_Item_XDECREF (char *, dtype)
object PyArray_FieldNames (object) object PyArray_FieldNames (object)
object PyArray_Transpose (ndarray, PyArray_Dims *) object PyArray_Transpose (ndarray, PyArray_Dims *)
object PyArray_TakeFrom (ndarray, object, int, ndarray, NPY_CLIPMODE) object PyArray_TakeFrom (ndarray, object, int, ndarray, NPY_CLIPMODE)
......
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