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

Method Call

cpp/src/arrow/compute/kernels/scalar_arithmetic.cc:422–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420struct Log10Checked {
421 template <typename T, typename Arg>
422 static enable_if_floating_value<Arg, T> Call(KernelContext*, Arg arg, Status* st) {
423 static_assert(std::is_same<T, Arg>::value, "");
424 if (arg == 0) {
425 *st = Status::Invalid("logarithm of zero");
426 return arg;
427 } else if (arg < 0) {
428 *st = Status::Invalid("logarithm of negative number");
429 return arg;
430 }
431 return std::log10(arg);
432 }
433};
434
435struct Log2 {

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected