Skip to content

Commit 36e2d65

Browse files
authored
Merge pull request #48 from honno/test-everything
Test almost everything that was left
2 parents 8b8ac96 + 318b8dd commit 36e2d65

17 files changed

+1689
-288
lines changed

array_api_tests/array_helpers.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import itertools
2-
31
from ._array_module import (isnan, all, any, equal, not_equal, logical_and,
42
logical_or, isfinite, greater, less, less_equal,
53
zeros, ones, full, bool, int8, int16, int32,
@@ -23,7 +21,7 @@
2321
'assert_isinf', 'positive_mathematical_sign',
2422
'assert_positive_mathematical_sign', 'negative_mathematical_sign',
2523
'assert_negative_mathematical_sign', 'same_sign',
26-
'assert_same_sign', 'ndindex', 'float64',
24+
'assert_same_sign', 'float64',
2725
'asarray', 'full', 'true', 'false', 'isnan']
2826

2927
def zero(shape, dtype):
@@ -319,13 +317,3 @@ def int_to_dtype(x, n, signed):
319317
if x & highest_bit:
320318
x = -((~x & mask) + 1)
321319
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

Comments
 (0)