[
https://issues.apache.org/jira/browse/ARROW-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308048#comment-17308048
]
Antoine Pitrou commented on ARROW-9253:
---------------------------------------
It's to return true/false. Here is a possible API:
{code:c++}
/// Return true iff all values are multiples of factor
bool IntegersMultipleOf(const int64_t* values, int64_t length, int64_t factor);
/// Return true iff all non-null values are multiples of factor
bool IntegersMultipleOf(const int64_t* values, const uint8_t* null_bitmap,
int64_t length, int64_t factor);
{code}
> [C++] Add vectorized "IntegersMultipleOf" to arrow/util/int_util.h
> ------------------------------------------------------------------
>
> Key: ARROW-9253
> URL: https://issues.apache.org/jira/browse/ARROW-9253
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Wes McKinney
> Priority: Major
>
> There are various places where we check whether an array of integers are all
> a multiple of another number (e.g. a multiple of 86400000 milliseconds per
> day). It would be better to factor out this data check into a reusable
> function similar to the {{CheckIntegersInRange}} function
--
This message was sent by Atlassian Jira
(v8.3.4#803005)