-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Accessing PyArray_GETITEM and PyArray_SETITEM #1181
Comments
For now I called the Python methods |
Any thoughts on the suggestions in the numpy-discussion thread? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
In order to pass PR #1152 on CI, I need to access
PyArray_GETITEM
andPyArray_SETITEM
. These functions are not a part of the limited Python API Pybind11 seems to give access to. I was wondering how I could go about using them?Initially, Jason suggested reimplementing the functions like they are in ndarraytypes.h, but then realized that the object types like
PyArray_ArrFuncs
is something we can't have access to. Is there a way around this? I guess, creating proxies doesn't make sense as well since the types are not exposed in Numpy's API, correct?As per Jason's suggestion, I've asked the question on numpy-discussion as well, about why aren't these functions exposed like the rest of them in numpy_api.py.
Any help would be appreciated! Thanks!
The text was updated successfully, but these errors were encountered: