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
dpctl.tensor returns int8 arrays from ceil, trunc and floor function for bool input array #2030
changed the title [-]dpt.tensor returns int8 arrays from `ceil`, `trunc` and `floor` function for bool input array[/-][+]`dpctl.tensor` returns int8 arrays from `ceil`, `trunc` and `floor` function for bool input array[/+]on Mar 26, 2025
Although the support of bool dtypes is not mandated:
x (array) – input array. Should have a real-valued data type.
This is the most important point, everything outside of real-valued is undefined behavior, so the current behavior doesn't disobey the spec.
We don't return a bool array because we chose not to implement a loop for bool in these cases, but supporting the bool->bool loop would be fine, in my opinion.
Activity
[-]dpt.tensor returns int8 arrays from `ceil`, `trunc` and `floor` function for bool input array[/-][+]`dpctl.tensor` returns int8 arrays from `ceil`, `trunc` and `floor` function for bool input array[/+]ndgrigorian commentedon Mar 27, 2025
This is the most important point, everything outside of real-valued is undefined behavior, so the current behavior doesn't disobey the spec.
We don't return a bool array because we chose not to implement a loop for
boolin these cases, but supporting thebool->boolloop would be fine, in my opinion.remove w/a related to dpctl-issue-2030 (#2403)
remove w/a related to dpctl-issue-2030 (#2403)