ClickHouse/src/Functions/hypot.cpp

20 lines
414 B
C++
Raw Normal View History

#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);
}
}