Arrayterator.
shape
The shape of the array to be iterated over.
For an example, see Arrayterator.
Arrayterator
numpy.lib.Arrayterator
numpy.lib.Arrayterator.flat