| 1 | #include <Functions/FunctionMathUnary.h> |
|---|---|
| 2 | #include <Functions/FunctionFactory.h> |
| 3 | |
| 4 | namespace DB |
| 5 | { |
| 6 | |
| 7 | struct ErfName { static constexpr auto name = "erf"; }; |
| 8 | using FunctionErf = FunctionMathUnary<UnaryFunctionPlain<ErfName, std::erf>>; |
| 9 | |
| 10 | void registerFunctionErf(FunctionFactory & factory) |
| 11 | { |
| 12 | factory.registerFunction<FunctionErf>(); |
| 13 | } |
| 14 | |
| 15 | } |
| 16 |