Skip to content

Commit

Permalink
doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilson committed Nov 3, 2024
1 parent d60449b commit f798cd2
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions cpp/src/arrow/compute/kernels/scalar_arithmetic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,18 +274,6 @@ struct Asinh {
}
};

struct AsinhChecked {
template <typename T, typename Arg0>
static enable_if_floating_value<Arg0, T> Call(KernelContext*, Arg0 val, Status* st) {
static_assert(std::is_same<T, Arg0>::value, "");
if (ARROW_PREDICT_FALSE(std::isinf(val))) {
*st = Status::Invalid("domain error");
return val;
}
return std::asin(val);
}
};

struct Acos {
template <typename T, typename Arg0>
static enable_if_floating_value<Arg0, T> Call(KernelContext*, Arg0 val, Status*) {
Expand Down Expand Up @@ -1278,12 +1266,12 @@ const FunctionDoc cosh_doc{"Compute the hyperbolic cosine", (""), {"x"}};

const FunctionDoc tan_doc{"Compute the tangent",
("NaN is returned for invalid input values;\n"
"to raise an error instead, see \"tanh_checked\"."),
"to raise an error instead, see \"tan_checked\"."),
{"x"}};

const FunctionDoc tan_checked_doc{"Compute the tangent",
("Infinite values raise an error;\n"
"to return NaN instead, see \"tanh\"."),
"to return NaN instead, see \"tan\"."),
{"x"}};

const FunctionDoc tanh_doc{"Compute the hyperbolic tangent", (""), {"x"}};
Expand All @@ -1298,10 +1286,7 @@ const FunctionDoc asin_checked_doc{"Compute the inverse sine",
"to return NaN instead, see \"asin\"."),
{"x"}};

const FunctionDoc asinh_doc{"Compute the inverse hyperbolic sine",
("NaN is returned for invalid input values;\n"
"to raise an error instead, see \"asinh_checked\"."),
{"x"}};
const FunctionDoc asinh_doc{"Compute the inverse hyperbolic sine", (""), {"x"}};

const FunctionDoc acos_doc{"Compute the inverse cosine",
("NaN is returned for invalid input values;\n"
Expand Down

0 comments on commit f798cd2

Please sign in to comment.