xorbits.numpy.ndenumerate#
- xorbits.numpy.ndenumerate = <function ndenumerate>#
Multidimensional index iterator.
Return an iterator yielding pairs of array coordinates and values.
- 参数
arr (ndarray) – Input array.
实际案例
>>> a = np.array([[1, 2], [3, 4]]) >>> for index, x in np.ndenumerate(a): ... print(index, x) (0, 0) 1 (0, 1) 2 (1, 0) 3 (1, 1) 4
警告
This method has not been implemented yet. Xorbits will try to execute it with numpy.
This docstring was copied from numpy.