FuncSketch
Loading...
Searching...
No Matches
generate_math_function_list.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2026 MusicScience37 (Kenta Kabashima)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
21
31
32namespace func_sketch::math {
33
36
37 // In exp.h
38 list.emplace(exp_function());
39 list.emplace(exp2_function());
40 list.emplace(expm1_function());
41
42 // In log.h
43 list.emplace(log_function());
44 list.emplace(log1p_function());
45 list.emplace(log10_function());
46 list.emplace(log2_function());
47
48 // In pow.h
49 list.emplace(pow_function());
50 list.emplace(sqrt_function());
51 list.emplace(cbrt_function());
52
53 // In trigonometric.h
54 list.emplace(sin_function());
55 list.emplace(cos_function());
56 list.emplace(tan_function());
57 list.emplace(asin_function());
58 list.emplace(acos_function());
59 list.emplace(atan_function());
60 list.emplace(atan2_function());
61
62 // In hyperbolic.h
63 list.emplace(sinh_function());
64 list.emplace(cosh_function());
65 list.emplace(tanh_function());
66 list.emplace(asinh_function());
67 list.emplace(acosh_function());
68 list.emplace(atanh_function());
69
70 // In misc_float_operations.h
71 list.emplace(abs_function());
72 list.emplace(ceil_function());
73 list.emplace(floor_function());
74 list.emplace(trunc_function());
75 list.emplace(round_function());
76
77 // In complex.h
78 list.emplace(real_function());
79 list.emplace(imag_function());
80 list.emplace(arg_function());
81 list.emplace(conj_function());
82
83 // In erf.h
84 list.emplace(erf_function());
85 list.emplace(erfc_function());
86
87 // In gamma.h
88 list.emplace(gamma_function());
90
91 return list;
92}
93
94} // namespace func_sketch::math
Class of lists of mathematical functions.
void emplace(T &&function)
Append a mathematical function to the list.
Declaration of functions for complex numbers.
MathFunction arg_function()
Create arg function.
Definition complex.cpp:41
MathFunction imag_function()
Create imag function.
Definition complex.cpp:35
MathFunction real_function()
Create real function.
Definition complex.cpp:29
MathFunction conj_function()
Create conj function.
Definition complex.cpp:47
Declaration of functions to create error functions.
MathFunction erfc_function()
Create erfc function.
Definition erf.cpp:37
MathFunction erf_function()
Create erf function.
Definition erf.cpp:31
Declaration of functions to create exponential functions.
MathFunction exp_function()
Create exp function.
Definition exp.cpp:31
MathFunction expm1_function()
Create expm1 function.
Definition exp.cpp:43
MathFunction exp2_function()
Create exp2 function.
Definition exp.cpp:37
Declaration of functions to create gamma functions.
MathFunction lgamma_function()
Create lgamma function.
Definition gamma.cpp:43
MathFunction gamma_function()
Create gamma function.
Definition gamma.cpp:31
Declaration of generate_math_function_list function.
MathFunctionList generate_math_function_list()
Generate a list of mathematical functions.
Declaration of functions to create hyperbolic functions.
MathFunction acosh_function()
Create acosh function.
MathFunction cosh_function()
Create cosh function.
MathFunction asinh_function()
Create asinh function.
MathFunction sinh_function()
Create sinh function.
MathFunction atanh_function()
Create atanh function.
MathFunction tanh_function()
Create tanh function.
Declaration of functions to create logarithmic functions.
MathFunction log10_function()
Create log10 function.
Definition log.cpp:43
MathFunction log2_function()
Create log2 function.
Definition log.cpp:49
MathFunction log_function()
Create log function.
Definition log.cpp:31
MathFunction log1p_function()
Create log1p function.
Definition log.cpp:37
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.
Declaration of functions to create power functions.
MathFunction pow_function()
Create pow function.
Definition pow.cpp:32
MathFunction sqrt_function()
Create sqrt function.
Definition pow.cpp:41
MathFunction cbrt_function()
Create cbrt function.
Definition pow.cpp:47
Declaration of functions to create trigonometric functions.
MathFunction cos_function()
Create cos function.
MathFunction acos_function()
Create acos function.
MathFunction asin_function()
Create asin function.
MathFunction tan_function()
Create tan function.
MathFunction sin_function()
Create sin function.
MathFunction atan_function()
Create atan function.
MathFunction atan2_function()
Create atan2 function.