Hello, I wanted to create a function that visits elements in an array using the same rules as advanced indexing (with integer and boolean arrays) but does addition instead of assignment (discussed more here http://mail.scipy.org/pipermail/numpy-discussion/2012-June/062687.html).
I looked at the code for advanced indexing and tried to copy that, but it uses PyArrayMapIterObject and the functions for using that object (PyArray_MapIterReset, and the equivalent Next,New and Bind functions as well as _swap_axes) are not exposed by the C API as far as I can tell. Is that on purpose? Is there an easy way to gain access to these functions? Should I give up on this approach? (The function I was trying to build is index_inc in here ( https://github.com/jsalvatier/advinc/blob/master/advinc/advinc.c)) Cheers, John
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion