Is there function to get an iterator over an arbitrary dimension of a numpy array?
Iterating over the first dimension is easy...
In [63]: c = numpy.a
You can use numpy.shape to get dimensions, and then range to iterate over them.
n0, n1, n2 = numpy.shape(c) for r in range(n0): print(c[r,:,:])