Description
https://github.com/data-apis/array-api/blob/main/spec/API_specification/array_object.rst#17 says:
Furthermore, a conforming implementation of the array API standard must support array objects of arbitrary rank
N
(i.e., number of dimensions), whereN
is greater than or equal to zero.
Unfortunately this is infeasible: on any computer there's going to be a finite maximum dimensionality, and in practice it's usually much smaller - e.g. numpy.array_api
is limited to 32-dimensional arrays. When it's impossible to comply with the standard, implementations will quite reasonably choose whatever noncompliant option makes sense for them.
I'd therefore propose that this should instead require implementations to support arrays with between zero and 32 dimensions inclusive (or another reasonable constant TBD), and permit implementations to support a larger number of dimensions if they wish.