-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-12843: [C++][R] Implement is_inf kernel #10375
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
Conversation
|
Thanks for doing this @lidavidm! You mind if I push a commit to your fork to tweak some of the R stuff? |
|
Yeah, please go ahead! I admit I'm not familiar with the R side of things and mostly just pattern match on similar code. |
|
The fact that Both R and NumPy have separate functions to test for finite and invite values, and these all return false for > is.infinite(NaN)
[1] FALSE
> is.finite(NaN)
[1] FALSE>>> np.isinf(np.nan)
False
>>> np.isfinite(np.nan)
FalseI wonder if this suggests we should also make an |
|
Oh, doh. Yes, then having an is_finite kernel would make more sense than just inverting it. I'll update that. |
|
This also fixes an inconsistency with the |
cyb70289
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, +1
|
@ianmcook , do you have other comments? Can we merge this PR? |
|
@cyb70289 No more comments from me, looks good, thanks |
No description provided.