You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing description of out keyword for accumulation functions #1634
There is no description of out keyword for accumulation functions and so the expected behavior might not be clear.
In Python array API spec there is no such keyword.
The code below shows different behavior between dpctl and numpy in case when dtype of out array mismatches type x array or default integer type (while numpy supports type casting for out array if necessary):
Activity
ndgrigorian commentedon Apr 4, 2024
This behavior itself is intended, for consistency with how we've chosen to implement the
outkeyword for elementwise functions andmatmul.The lack of documentation is not, it will need to be added.
Resolves gh-1634