mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
22 lines
381 B
C++
22 lines
381 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>>;
|
|
|
|
}
|
|
|
|
void registerFunctionCosh(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionCosh>();
|
|
}
|
|
|
|
}
|