It’s worth noting that PyArray_GETITEM is the equivalent of arr[].item(),
not arr[...]. If you want the behavior of the latter, use PyArray_Scalar
instead.
Similarly, PyArray_SETITEM is only guaranteed to be equivalent to arr[...]
= x when isinstance(x, np.generic) is false.
I don’t think the
On 11/13/2017 01:53 PM, Mmanu Chaturvedi wrote:
> 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