mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 12:52:37 +00:00
23 lines
333 B
C++
23 lines
333 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionMathUnary.h>
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct CoshName
|
|
{
|
|
static constexpr auto name = "cosh";
|
|
};
|
|
using FunctionCosh = FunctionMathUnary<UnaryFunctionVectorized<CoshName, cosh>>;
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(Cosh)
|
|
{
|
|
factory.registerFunction<FunctionCosh>();
|
|
}
|
|
|
|
}
|