30namespace func_sketch::math {
35 "abs", [](
auto arg) {
return std::abs(arg); }));
41 "ceil", [](
Real arg) {
return std::ceil(arg); }));
47 "floor", [](
Real arg) {
return std::floor(arg); }));
53 "trunc", [](
Real arg) {
return std::trunc(arg); }));
59 "round", [](
Real arg) {
return std::round(arg); }));
Definition of AcceptableTypes struct.
Class of mathematical functions.
Definitions of common types.
double Real
Type of real numbers in this project.
Definition of GeneralMathFunction class.
auto make_general_math_function(std::string name, FunctionType &&function)
Make a general mathematical function.
Definition of MathFunction class.
Declaration of functions to create functions of miscellaneous floating-point operations.
MathFunction round_function()
Create round function.
MathFunction trunc_function()
Create trunc function.
MathFunction ceil_function()
Create ceil function.
MathFunction floor_function()
Create floor function.
MathFunction abs_function()
Create abs function.
Traits struct to handle acceptable number types.