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