aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/erf.cpp
blob: 3e5ee9fa724f9a81567fa93e408c7f7a082a23f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <Functions/FunctionMathUnary.h>
#include <Functions/FunctionFactory.h>

namespace DB
{
namespace
{

struct ErfName { static constexpr auto name = "erf"; };
using FunctionErf = FunctionMathUnary<UnaryFunctionVectorized<ErfName, std::erf>>;

}

REGISTER_FUNCTION(Erf)
{
    factory.registerFunction<FunctionErf>();
}

}