Class of mathematical functions.
More...
#include <func_sketch/math/math_function.h>
|
| template<MathFunctionType T> |
| | MathFunction (T function) |
| | Constructor.
|
| std::string_view | name () const |
| | Get the name of the function.
|
| void | operator() (const std::vector< Number > &args, Number &result) const |
| | Operate on scalars.
|
Class of mathematical functions.
Definition at line 35 of file math_function.h.
◆ GetNameSignature
Initial value: std::string_view(
Class to store any type of value.
Signature of function to get the name of the function.
Definition at line 72 of file math_function.h.
◆ ScalarOperatorSignature
Initial value: void(
const std::vector<Number>& ,
Number& )
std::variant< Integer, Real, Complex > Number
Type of numbers.
Signature of function to operate on scalars.
Definition at line 76 of file math_function.h.
◆ MathFunction()
template<MathFunctionType T>
| func_sketch::math::MathFunction::MathFunction |
( |
T | function | ) |
|
|
inlineexplicit |
Constructor.
- Template Parameters
-
| T | Type of the function object. |
- Parameters
-
| [in] | function | Function object. |
Definition at line 44 of file math_function.h.
◆ name()
| std::string_view func_sketch::math::MathFunction::name |
( |
| ) |
const |
|
inlinenodiscard |
Get the name of the function.
- Returns
- Name of the function.
Definition at line 58 of file math_function.h.
◆ operator()()
| void func_sketch::math::MathFunction::operator() |
( |
const std::vector< Number > & | args, |
|
|
Number & | result ) const |
|
inline |
Operate on scalars.
- Parameters
-
| [in] | args | Arguments. |
| [out] | result | Result. |
Definition at line 66 of file math_function.h.
◆ function_
◆ get_name_
Function to get the name of the function.
Definition at line 84 of file math_function.h.
◆ scalar_operator_
The documentation for this class was generated from the following file: