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
divide() (and __truediv__/__itruediv__) allows x1 and x2 to be integer arrays, but the ouput is specified as a floating array determined by type promotion, which int types can't promote to.
The spec should either clarify behaviour for both mixed int/float array and two int array scenarios, or note they are out-of-scope similiar to pow().
The text was updated successfully, but these errors were encountered:
honno
changed the title
Divide functions have ambiguous behaviour for integer inputs
Divide functions have ambiguous specification for integer inputs
Jan 7, 2022
divide()
(and__truediv__
/__itruediv__
) allowsx1
andx2
to be integer arrays, but the ouput is specified as a floating array determined by type promotion, which int types can't promote to.The spec should either clarify behaviour for both mixed int/float array and two int array scenarios, or note they are out-of-scope similiar to
pow()
.The text was updated successfully, but these errors were encountered: