attribute
- flatiter.coords#
An N-dimensional tuple of current coordinates.
Examples
>>> import numpy as np >>> x = np.arange(6).reshape(2, 3) >>> fl = x.flat >>> fl.coords (0, 0) >>> next(fl) 0 >>> fl.coords (0, 1)
numpy.flatiter.coords — NumPy v2.5.dev0 Manual
attribute
An N-dimensional tuple of current coordinates.
Examples
>>> import numpy as np >>> x = np.arange(6).reshape(2, 3) >>> fl = x.flat >>> fl.coords (0, 0) >>> next(fl) 0 >>> fl.coords (0, 1)