The 2024.12 version of the standard will implement support for scalars in functions. See https://github.com/data-apis/array-api/issues/807. This has not yet been written in the draft spec, so nothing is implemented here yet. This issue is just to track that work. There has also been a start to this at #78 See also https://github.com/data-apis/array-api-strict/issues/77
Activity
ev-br commentedon Feb 4, 2025
Here are the individual PRs which implement parts of this issue:
where: Add support for scalar arguments to xp.where #78result_type: Allow python scalars inresult_type: 2024.12 revision #119ev-br commentedon Feb 18, 2025
Looks like all is done here. All this needs testing in
array-api-tests; shall track test additions over there, no need to duplicate it here.