MCPcopy Create free account
hub / github.com/apache/arrow / RoundToMultiple

Method RoundToMultiple

cpp/src/arrow/compute/kernels/scalar_round.cc:535–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533 CType multiple;
534
535 explicit RoundToMultiple(const State& state, const DataType& out_ty)
536 : multiple(UnboxScalar<ArrowType>::Unbox(*state.options.multiple)) {
537 const auto& options = state.options;
538 DCHECK(options.multiple);
539 DCHECK(options.multiple->is_valid);
540 DCHECK(is_floating(options.multiple->type->id()));
541 }
542
543 template <typename T = ArrowType, typename CType = typename TypeTraits<T>::CType>
544 enable_if_floating_value<CType> Call(KernelContext* ctx, CType arg, Status* st) const {

Callers

nothing calls this directly

Calls 2

is_floatingFunction · 0.50
idMethod · 0.45

Tested by

no test coverage detected