-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: add nextafter
#664
Comments
A few questions come to mind:
|
My thoughts:
|
To my eyes, that is weird behavior. I would think that what you usually want is the next value before/after an element in |
This seems in conflict with supporting type promotion, as mixed-kind promotion semantics are undefined. |
On second thought, I agree with you there. |
This RFC proposes adding
nextafter
functionOverview
Based on array comparison data, the API is available in most array libraries. The main exception is MXNet which doesn't implement it.
Prior art
nextafter
Proposal
This proposal follows similar element-wise APIs,
Related
nextafter
is available as part of C99.nextafter
has equivalent APIs in the IEEE 754 specification asnextUp
/nextDown
.nextfloat
andprevfloat
.The text was updated successfully, but these errors were encountered: