ClickHouse/src/Functions/cosh.cpp

22 lines
352 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
2020-11-03 15:32:04 +00:00
#include <Functions/FunctionMathUnary.h>
namespace DB
{
namespace
{
2020-11-03 15:32:04 +00:00
struct CoshName
{
static constexpr auto name = "cosh";
};
using FunctionCosh = FunctionMathUnary<UnaryFunctionVectorized<CoshName, cosh>>;
}
REGISTER_FUNCTION(Cosh)
{
factory.registerFunction<FunctionCosh>();
}
}