ClickHouse/src/Functions/hypot.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
412 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>>;
}
REGISTER_FUNCTION(Hypot)
{
2022-08-27 20:06:03 +00:00
factory.registerFunction<FunctionHypot>({}, FunctionFactory::CaseInsensitive);
}
}