Definition of GeneralMathFunction class.
More...
#include <concepts>
#include <string>
#include <string_view>
#include <tuple>
#include <utility>
#include <variant>
#include <vector>
#include <fmt/base.h>
#include <fmt/format.h>
#include "func_sketch/common_types.h"
#include "func_sketch/exceptions.h"
#include "func_sketch/math/acceptable_types.h"
#include "func_sketch/math/number_type_name.h"
Go to the source code of this file.
Definition of GeneralMathFunction class.
Definition in file general_math_function.h.
◆ make_general_math_function_impl()
template<details::AcceptableTypesTupleType AcceptableTypesTuple, typename FunctionType, std::size_t... Indices>
| auto func_sketch::math::details::make_general_math_function_impl |
( |
std::string | name, |
|
|
FunctionType && | function, |
|
|
std::index_sequence< Indices... > | ) |
|
nodiscard |
Make a general mathematical function.
- Template Parameters
-
| AcceptableTypesTuple | Tuple of func_sketch::math::AcceptableTypes types for each argument. |
| FunctionType | Type of the function object to compute numbers. |
| Indices | Indices of arguments. |
- Parameters
-
| [in] | name | Name of the function. |
| [in] | function | Function object to compute numbers. |
- Returns
- Created general mathematical function.
Definition at line 239 of file general_math_function.h.
◆ make_general_math_function()
template<details::AcceptableTypesTupleType AcceptableTypesTuple, typename FunctionType>
| auto func_sketch::math::make_general_math_function |
( |
std::string | name, |
|
|
FunctionType && | function ) |
|
nodiscard |
Make a general mathematical function.
- Template Parameters
-
- Parameters
-
| [in] | name | Name of the function. |
| [in] | function | Function object to compute numbers. |
- Returns
- Created general mathematical function.
Definition at line 260 of file general_math_function.h.