[Numpy-discussion] MultiIter version of PyArray_IterAllButAxis ?

John Salvatier jsalvati at u.washington.edu
Wed Dec 1 23:00:25 EST 2010


On Wed, Dec 1, 2010 at 7:56 PM, David <david at silveregg.co.jp> wrote:

> On 12/02/2010 12:35 PM, John Salvatier wrote:
> > Hello,
> >
> > I am writing a UFunc creation utility, and I would like to know: is
> > there a way to mimic the behavior ofPyArray_IterAllButAxis for multiple
> > arrays at a time?
>
> Is there a reason why creating a separate iterator for each array is not
> possible ?
>

If the arrays are not the same shape, separate iterators won't be aligned,
so if the results are going into a broadcasted result array, the computation
won't be correct.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20101201/7034512a/attachment.html>


More information about the NumPy-Discussion mailing list