ClickHouse/src/Functions/atan2.cpp

22 lines
408 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 Atan2Name
{
static constexpr auto name = "atan2";
};
using FunctionAtan2 = FunctionMathBinaryFloat64<BinaryFunctionVectorized<Atan2Name, atan2>>;
}
REGISTER_FUNCTION(Atan2)
{
factory.registerFunction<FunctionAtan2>(FunctionFactory::CaseInsensitive);
}
}