Closed antonwolfy closed 5 days ago
Spec is definitely unclear about expected behavior, however
Broadcasts one or more arrays against one another.
leads me to believe that it is intended to be a minimum of 1 array.
Still, as pointed out, that exception is entirely unhelpful.
The below example works differently with numpy and numpy.array_api:
From the Python array API it doesn't look clear enough if empty list should be supported and the empty list to be returned.
In any case that corner case needs to be properly handled by dpctl, because the raised exception
ValueError: max() arg is an empty sequence
doesn't sound clear about the reason of failure.