SciPy

numpy.flatiter.base

flatiter.base

A reference to the array that is iterated over.

Examples

>>> x = np.arange(5)
>>> fl = x.flat
>>> fl.base is x
True