attribute
- flatiter.index#
Current flat index into the array.
Examples
>>> import numpy as np >>> x = np.arange(6).reshape(2, 3) >>> fl = x.flat >>> fl.index 0 >>> next(fl) 0 >>> fl.index 1
numpy.flatiter.index — NumPy v2.5.dev0 Manual
attribute
Current flat index into the array.
Examples
>>> import numpy as np >>> x = np.arange(6).reshape(2, 3) >>> fl = x.flat >>> fl.index 0 >>> next(fl) 0 >>> fl.index 1