8000 API: bump MAXDIMS/MAXARGS to 64 introduce NPY_AXIS_RAVEL by seberg · Pull Request #25149 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

API: bump MAXDIMS/MAXARGS to 64 introduce NPY_AXIS_RAVEL #25149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 28, 2023
Merged
Prev Previous commit
Next Next commit
MAINT: Cython restore NPY_MAXDIMS and add NPY_RAVEL_AXIS
  • Loading branch information
seberg committed Nov 17, 2023
commit 8dddc54a764c757a21d0259b5a1d937897ae9b50
4 changes: 4 additions & 0 deletions numpy/__init__.cython-30.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ cdef extern from "numpy/arrayobject.h":

NPY_ARRAY_UPDATE_ALL

cdef enum:
NPY_MAXDIMS # 64 on NumPy 2.x and 32 on NumPy 1.x
NPY_RAVEL_AXIS # Used for functions like PyArray_Mean

ctypedef void (*PyArray_VectorUnaryFunc)(void *, void *, npy_intp, void *, void *)

ctypedef struct PyArray_ArrayDescr:
Expand Down
4 changes: 4 additions & 0 deletions numpy/__init__.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ cdef extern from "numpy/arrayobject.h":

NPY_ARRAY_UPDATE_ALL

cdef enum:
NPY_MAXDIMS # 64 on NumPy 2.x and 32 on NumPy 1.x
NPY_RAVEL_AXIS # Used for functions like PyArray_Mean

ctypedef void (*PyArray_VectorUnaryFunc)(void *, void *, npy_intp, void *, void *)

ctypedef struct PyArray_ArrayDescr:
Expand Down
0