[Numpy-discussion] Axis Iterator?

Bill Baxter wbaxter at gmail.com
Thu Sep 14 21:05:13 CDT 2006

On 9/15/06, Tim Hochberg <tim.hochberg at ieee.org> wrote:
> Isn't swapaxis appropriate for this? In other words:

You're right.  Just didn't think of that.  Never used swapaxes before.

def axisiter(arr, i):
    return arr.swapaxes(0,i)


More information about the Numpy-discussion mailing list