NumPy

Previous topic

numpy.ndenumerate

Next topic

numpy.broadcast

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

numpy.ndenumerate.next

method

ndenumerate.next(self)[source]

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

Returns
coordstuple of ints

The indices of the current iteration.

valscalar

The array element of the current iteration.