[Numpy-discussion] PyArray_MapIter{Reset, Next, New, Bind} not exposed?

John Salvatier jsalvati@u.washington....
Wed Jun 20 15:26:03 CDT 2012


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

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 (

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120620/5eeb9dd7/attachment.html 

More information about the NumPy-Discussion mailing list