Closed
Description
The array API supports Python scalars in arithmetic only, i.e., operations like x + 1
.
For the same readability reasons that supporting scalars in arithmetic is valuable, it would nice to also support Python scalars in other elementwise functions, at least those that take multiple arguments like maximum(x, 0)
or where(y, x, 0)
.