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

Method Call

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

Source from the content-addressed store, hash-verified

199struct CosChecked {
200 template <typename T, typename Arg0>
201 static enable_if_floating_value<Arg0, T> Call(KernelContext*, Arg0 val, Status* st) {
202 static_assert(std::is_same<T, Arg0>::value, "");
203 if (ARROW_PREDICT_FALSE(std::isinf(val))) {
204 *st = Status::Invalid("domain error");
205 return val;
206 }
207 return std::cos(val);
208 }
209};
210
211struct Cosh {

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected