mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +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>();
|
|
}
|
|
|
|
}
|