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.
nditer
iternext : bool
Whether or not there are iterations left.
numpy.nditer.enable_external_loop
numpy.nditer.next