numpy.ndindex.next — NumPy v1.11 Manual (original) (raw)

ndindex.next()[source]

Standard iterator method, updates the index and returns the index tuple.

Returns: val : tuple of ints Returns a tuple containing the indices of the current iteration.