ARROW-12843: [C++][R] Implement is_inf kernel#10375
ARROW-12843: [C++][R] Implement is_inf kernel#10375lidavidm wants to merge 3 commits intoapache:masterfrom
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 |
|
@ianmcook , do you have other comments? Can we merge this PR? |
|
@cyb70289 No more comments from me, looks good, thanks |
No description provided.