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

Method Call

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

Source from the content-addressed store, hash-verified

643struct Sign {
644 template <typename T, typename Arg>
645 static constexpr enable_if_floating_value<Arg, T> Call(KernelContext*, Arg arg,
646 Status*) {
647 return std::isnan(arg) ? arg : ((arg == 0) ? 0 : (std::signbit(arg) ? -1 : 1));
648 }
649
650 template <typename T, typename Arg>
651 static constexpr enable_if_half_float_value<Arg, T> Call(KernelContext*, Arg arg,

Callers

nothing calls this directly

Calls 5

signbitFunction · 0.85
zeroFunction · 0.85
oneFunction · 0.85
signbitMethod · 0.80
SignMethod · 0.80

Tested by

no test coverage detected