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

Method Call

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

Source from the content-addressed store, hash-verified

290struct AcosChecked {
291 template <typename T, typename Arg0>
292 static enable_if_floating_value<Arg0, T> Call(KernelContext*, Arg0 val, Status* st) {
293 static_assert(std::is_same<T, Arg0>::value, "");
294 if (ARROW_PREDICT_FALSE((val < -1.0 || val > 1.0))) {
295 *st = Status::Invalid("domain error");
296 return val;
297 }
298 return std::acos(val);
299 }
300};
301
302struct Acosh {

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected