Re: [Numpy-discussion] Using nditer + external_loop to Always Iterate by Column

2020-05-19 Thread William Ayd
Thanks Hameer for the suggestion. I perhaps should have clarified that this is a small example for something larger, where I am iterating over a sequence of arrays, computing some reduction on the first and writing to the second. I am hoping to keep it all contained within one nditer. Thanks Er

[Numpy-discussion] NumPy Development Meeting Tomorrow - Triage Focus

2020-05-19 Thread Sebastian Berg
Hi all, Our bi-weekly triage-focused NumPy development meeting is tomorrow (Wednesday, May 20th) at 11 am Pacific Time (18:00 UTC). Everyone is invited to join in and edit the work-in-progress meeting topics and notes: https://hackmd.io/68i_JvOYQfy9ERiHgXMPvg I encourage everyone to notify us of

Re: [Numpy-discussion] Using nditer + external_loop to Always Iterate by Column

2020-05-19 Thread Sebastian Berg
On Tue, 2020-05-19 at 17:11 +0100, Eric Wieser wrote: > Hi Will, > > To force an iteration to run along certain axes, I believe you should > be > using `op_axes`. Your diagnosis is correct that `external_loop` is > trying > to help you be more optimal, since it's purpose is exactly that: > optimiz

Re: [Numpy-discussion] Using nditer + external_loop to Always Iterate by Column

2020-05-19 Thread Eric Wieser
Hi Will, To force an iteration to run along certain axes, I believe you should be using `op_axes`. Your diagnosis is correct that `external_loop` is trying to help you be more optimal, since it's purpose is exactly that: optimization. Unfortunately, if you use `op_axes` you'll run into https://gi

Re: [Numpy-discussion] Using nditer + external_loop to Always Iterate by Column

2020-05-19 Thread Hameer Abbasi
Hi William, You can simply use a for loop for that task: Python 3.8.2 | packaged by conda-forge | (default, Apr 24 2020, 07:56:27) Type 'copyright', 'credits' or 'license' for more information IPython 7.14.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import numpy as np In [2]