ndarray.flat

numpy.ndarray.flat

ndarray.flat

A 1-D iterator over the array.

This is a numpy.flatiter instance, which acts similarly to, but is not a subclass of, Python’s built-in iterator object.

See also

flatten
Return a copy of the array collapsed into one dimension.

flatiter

Exa