numpy / 1.17.0 / generated / numpy.ndenumerate.next.html /

numpy.ndenumerate.next

method

ndenumerate.next(self) [source]

Standard iterator method, returns the index tuple and array value.

Returns:
coords : tuple of ints

The indices of the current iteration.

val : scalar

The array element of the current iteration.

© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.ndenumerate.next.html