You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2021/03/25 14:58:00 UTC

[jira] [Commented] (ARROW-12084) [C++][Compute] Add remainder and quotient compute::Function

    [ https://issues.apache.org/jira/browse/ARROW-12084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308737#comment-17308737 ] 

Neal Richardson commented on ARROW-12084:
-----------------------------------------

We have a bit of hackery in R to effect these with the existing compute kernel: https://github.com/apache/arrow/blob/master/r/R/expression.R#L71-L90

Would be great to delete that.

> [C++][Compute] Add remainder and quotient compute::Function
> -----------------------------------------------------------
>
>                 Key: ARROW-12084
>                 URL: https://issues.apache.org/jira/browse/ARROW-12084
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Ben Kietzman
>            Priority: Major
>
> In addition to {{divide}} which returns only the quotient, it'd be useful to have a function which returns both quotient and remainder (these are efficient to compute simultaneously), probably as a {{struct<quotient: T, remainder: T>}}. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)