8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 942bdb2 commit bb0e4f3Copy full SHA for bb0e4f3
numpy/lib/index_tricks.py
@@ -534,11 +534,19 @@ class ndindex(object):
534
"""
535
def __init__(self, *shape):
536
x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
537
- self._it = _nx.nditer(x, flags=['multi_index'])
+ self._it = _nx.nditer(x, flags=['multi_index'], order='C')
538
539
def __iter__(self):
540
return self
541
542
+ def ndincr(self):
543
+ """
544
+ Increment the multi-dimensional index by one.
545
+
546
+ This method is for backward compatibility only: do not use.
547
548
+ self.next()
549
550
def next(self):
551
552
Standard iterator method, updates the index and returns the index tuple.
0 commit comments