feat: add scalar support to element-wise functions#862
feat: add scalar support to element-wise functions#862kgryte merged 5 commits intodata-apis:mainfrom
Conversation
|
I think we need to update and reference this section for the specification on how scalars convert into arrays. https://data-apis.org/array-api/latest/API_specification/type_promotion.html#mixing-arrays-with-python-scalars |
|
And #841 if fixed will also potentially change how that text reads in relation to how real and complex scalar casting works. |
|
|
|
In |
|
Once python ints make the stage, I'd be ideal to explicitly spell the position on overflows. For both binary operators and elementwise functions. AFAICS, the spec only declares unspecified an attempt to cast a too-large python int to an integer dtype. However, |
|
Also regarding clip: #811 |
As such, I do not believe this PR has any blockers and has received one approval, I'll go ahead and merge. Any necessary updates can be addressed in follow-up PRs. Thanks everyone! |
This PR
complexscalar support.