Composite functor: f(g(x)). Evaluates the outer function at the result of the inner function.
More...
#include <MathUtils_FunctorScalar.hxx>
|
| | Composite (Outer theOuter, Inner theInner) |
| | Constructor from outer and inner functions.
|
| bool | Value (double theX, double &theY) const |
| | Evaluates composite function f(g(theX)).
|
template<typename Outer, typename Inner>
class MathUtils::Composite< Outer, Inner >
Composite functor: f(g(x)). Evaluates the outer function at the result of the inner function.
Usage:
Composite(Outer theOuter, Inner theInner)
Constructor from outer and inner functions.
Definition MathUtils_FunctorScalar.hxx:347
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
- Template Parameters
-
| Outer | outer function type (must have Value method) |
| Inner | inner function type (must have Value method) |
◆ Composite()
template<typename Outer, typename Inner>
Constructor from outer and inner functions.
- Parameters
-
| theOuter | outer function f |
| theInner | inner function g |
◆ Value()
template<typename Outer, typename Inner>
Evaluates composite function f(g(theX)).
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value f(g(theX)) |
- Returns
- false if either evaluation fails
The documentation for this class was generated from the following file: