Open
Description
xp.nonzero
is documented in the spec to require an exception for 0d arrays:
x (array) – input array. Must have a positive rank. If x is zero-dimensional, the function must raise an exception.
Yet the code exercises xp.nonzero
for zero-dimensional arrays and expects the function to returns a tuple of size 1:
array-api-tests/array_api_tests/test_searching_functions.py
Lines 93 to 98 in f82c7bc
This discrepancy should be fixed, or the spec modified.