[Numpy-discussion] PyArray_GETITEM and PyArray_SETITEM

Mmanu Chaturvedi mmanu.chaturvedi at kitware.com
Mon Nov 13 13:53:32 EST 2017

Hello All,

I need to make use of the limited numpy API access Pybind11 gives, in order
to add a feature to it.  It seems to give access to functions from
numpy_api.py [1].  I need to use PyArray_GETITEM and PyArray_SETITEM in
order to get and set array elements [2], these functions / macros  are not
exposed via numpy_api.py, but are in `numpy/ndarraytypes.h`.

We were wondering why aren't PyArray_GETITEM and PyArray_SETITEM exposed
like the rest of numpy API?  Is it possible to replicate the behavior using
the members exposed in numpy_api.py ?  Any help would be appreciated.


[1] https://github.com/numpy/numpy/blob/1368cbb696ae27b849eed67b4fd31c

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20171113/bfed0d81/attachment.html>

More information about the NumPy-Discussion mailing list