ClickHouse/src/Functions/hypot.cpp

22 lines
437 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
2020-11-03 15:32:04 +00:00
#include <Functions/FunctionMathBinaryFloat64.h>
namespace DB
{
namespace
{
2020-11-03 15:32:04 +00:00
struct HypotName
{
static constexpr auto name = "hypot";
};
using FunctionHypot = FunctionMathBinaryFloat64<BinaryFunctionVectorized<HypotName, hypot>>;
}
void registerFunctionHypot(FunctionFactory & factory)
{
factory.registerFunction<FunctionHypot>(FunctionFactory::CaseInsensitive);
}
}