SciPy

numpy.nditer.reset

nditer.reset()

Reset the iterator to its initial state.