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
The first thing is kind of a flaw in the standard decision to make x not promote. It means you don't actually have min <= x <= max when min or max are float64 and x is float32. The example here is an underflow but it can happen with virtually any sort of rounding. See numpy/numpy#24976
The second is an annoying corner case in the standard, where apparently you can't compare uint64 and int64 (or at least the strict library doesn't allow it). I wonder if there's a helper function already somewhere in the test suite that makes this easier.
Actually for the comparison, we should avoid using Python integers that are larger than the bounds of x.dtype as the input. We should also probably avoid allowing int64 and uint64, even though there technically isn't a promotion, since libraries won't be able to do the proper comparisons we need for the test (it looks like the standard might be changed to not require this data-apis/array-api#819).
The text was updated successfully, but these errors were encountered: