mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-03 07:00:47 +00:00
16 lines
350 B
C++
16 lines
350 B
C++
|
#include <Functions/FunctionMathUnaryFloat64.h>
|
||
|
#include <Functions/FunctionFactory.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
struct ErfName { static constexpr auto name = "erf"; };
|
||
|
using FunctionErf = FunctionMathUnaryFloat64<UnaryFunctionPlain<ErfName, std::erf>>;
|
||
|
|
||
|
void registerFunctionErf(FunctionFactory & factory)
|
||
|
{
|
||
|
factory.registerFunction<FunctionErf>();
|
||
|
}
|
||
|
|
||
|
}
|