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

Method Call

cpp/src/arrow/compute/kernels/base_arithmetic_internal.h:647–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645
646 template <typename T, typename Arg0, typename Arg1>
647 static enable_if_integer_value<T> Call(KernelContext*, T base, T exp, Status* st) {
648 if (exp < 0) {
649 *st = Status::Invalid("integers to negative integer powers are not allowed");
650 return 0;
651 }
652 return static_cast<T>(IntegerPower(base, exp));
653 }
654
655 template <typename T, typename Arg0, typename Arg1>
656 static enable_if_floating_value<T> Call(KernelContext*, T base, T exp, Status*) {

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected