-
Notifications
You must be signed in to change notification settings - Fork 120
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
isNaN function #164
Comments
I believe that definition of isNaN is part of the IEEE 754 spec, or at least the rule that says NaN is not equal to anything, including itself, is. Whether it should be defined as a primitive operation really depends on whether backends could provide a more efficient implementation. |
It might be a good opportunity to add a few similar functions from the |
There are still missing functions from |
Sometimes we need to test if some values are NaNs, for instance we might want to filter NaNs out from an array. The following function works with both CUDA and Interpreter backends:
Should it work with every IEEE 754 compliant backend or it must be defined as primitive operation?
The text was updated successfully, but these errors were encountered: