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

Function AddHalfFloatUnaryKernel

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

Source from the content-addressed store, hash-verified

710
711template <typename Op>
712void AddHalfFloatUnaryKernel(ScalarFunction* func) {
713 OutputType out_type(FirstType);
714 auto in_type = InputType(Type::HALF_FLOAT);
715 auto exec = ScalarUnaryNotNull<HalfFloatType, HalfFloatType, Op>::Exec;
716 DCHECK_OK(func->AddKernel({in_type}, out_type, exec));
717}
718
719// Generate a kernel given an arithmetic functor
720template <template <typename...> class KernelGenerator, typename OutType, typename Op>

Callers

nothing calls this directly

Calls 2

InputTypeFunction · 0.85
AddKernelMethod · 0.45

Tested by

no test coverage detected