SciPy

numpy.nditer.iternext

nditer.iternext()

Check whether iterations are left, and perform a single internal iteration without returning the result. Used in the C-style pattern do-while pattern. For an example, see nditer.

Returns:

iternext : bool

Whether or not there are iterations left.