mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 13:32:13 +00:00
20 lines
414 B
C++
20 lines
414 B
C++
|
#include <Functions/FunctionMathBinaryFloat64.h>
|
||
|
#include <Functions/FunctionFactory.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
namespace
|
||
|
{
|
||
|
|
||
|
struct HypotName { static constexpr auto name = "hypot"; };
|
||
|
using FunctionHypot = FunctionMathBinaryFloat64<BinaryFunctionVectorized<HypotName, hypot>>;
|
||
|
|
||
|
}
|
||
|
|
||
|
void registerFunctionHypot(FunctionFactory & factory)
|
||
|
{
|
||
|
factory.registerFunction<FunctionHypot>(FunctionFactory::CaseInsensitive);
|
||
|
}
|
||
|
|
||
|
}
|