2020-11-03 12:59:27 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
2020-11-03 15:32:04 +00:00
|
|
|
#include <Functions/FunctionMathBinaryFloat64.h>
|
2020-11-03 12:59:27 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
namespace
|
|
|
|
{
|
2020-11-03 15:32:04 +00:00
|
|
|
struct Atan2Name
|
|
|
|
{
|
|
|
|
static constexpr auto name = "atan2";
|
|
|
|
};
|
|
|
|
using FunctionAtan2 = FunctionMathBinaryFloat64<BinaryFunctionVectorized<Atan2Name, atan2>>;
|
2020-11-03 12:59:27 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(Atan2)
|
2020-11-03 12:59:27 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionAtan2>(FunctionFactory::CaseInsensitive);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|