SciPy

This is documentation for an old release of NumPy (version 1.9.2). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.flatiter.coords

flatiter.coords

An N-dimensional tuple of current coordinates.

Examples

>>>
>>> x = np.arange(6).reshape(2, 3)
>>> fl = x.flat
>>> fl.coords
(0, 0)
>>> fl.next()
0
>>> fl.coords
(0, 1)

Previous topic

numpy.flatiter

Next topic

numpy.flatiter.copy