Sum of functions functor: f(x) + g(x).
More...
#include <MathUtils_FunctorScalar.hxx>
|
| | Sum (F theF, G theG) |
| | Constructor from two functions.
|
| bool | Value (double theX, double &theY) const |
| | Evaluates sum f(theX) + g(theX).
|
template<typename F, typename G>
class MathUtils::Sum< F, G >
Sum of functions functor: f(x) + g(x).
Usage:
Polynomial functor: f(x) = sum(a[i] * x^i). Coefficients are stored in order: a[0] + a[1]*x + a[2]*x^...
Definition MathUtils_FunctorScalar.hxx:148
Sum(F theF, G theG)
Constructor from two functions.
Definition MathUtils_FunctorScalar.hxx:402
- Template Parameters
-
| F | first function type |
| G | second function type |
◆ Sum()
template<typename F, typename G>
Constructor from two functions.
- Parameters
-
| theF | first function |
| theG | second function |
◆ Value()
template<typename F, typename G>
| bool MathUtils::Sum< F, G >::Value |
( |
double | theX, |
|
|
double & | theY ) const |
|
inline |
Evaluates sum f(theX) + g(theX).
- Parameters
-
| [in] | theX | input value |
| [out] | theY | sum value |
- Returns
- false if either evaluation fails
The documentation for this class was generated from the following file: