|
1 |
| -import itertools |
2 |
| - |
3 | 1 | from ._array_module import (isnan, all, any, equal, not_equal, logical_and,
|
4 | 2 | logical_or, isfinite, greater, less, less_equal,
|
5 | 3 | zeros, ones, full, bool, int8, int16, int32,
|
|
23 | 21 | 'assert_isinf', 'positive_mathematical_sign',
|
24 | 22 | 'assert_positive_mathematical_sign', 'negative_mathematical_sign',
|
25 | 23 | 'assert_negative_mathematical_sign', 'same_sign',
|
26 |
| - 'assert_same_sign', 'ndindex', 'float64', |
| 24 | + 'assert_same_sign', 'float64', |
27 | 25 | 'asarray', 'full', 'true', 'false', 'isnan']
|
28 | 26 |
|
29 | 27 | def zero(shape, dtype):
|
@@ -319,13 +317,3 @@ def int_to_dtype(x, n, signed):
|
319 | 317 | if x & highest_bit:
|
320 | 318 | x = -((~x & mask) + 1)
|
321 | 319 | return x
|
322 |
| - |
323 |
| -def ndindex(shape): |
324 |
| - """ |
325 |
| - Iterator of n-D indices to an array |
326 |
| -
|
327 |
| - Yields tuples of integers to index every element of an array of shape |
328 |
| - `shape`. Same as np.ndindex(). |
329 |
| -
|
330 |
| - """ |
331 |
| - return itertools.product(*[range(i) for i in shape]) |
0 commit comments