numpy.ndarray.flat

ndarray.flat

A 1-d flat iterator.

Examples

>>> x = np.arange(3*4*5)
>>> x.shape = (3,4,5)
>>> x.flat[19]
19
>>> x.T.flat[19]
31

Previous topic

numpy.ravel

Next topic

numpy.ndarray.flatten

This Page

Quick search