Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
MathUtils::Product< F, G > Class Template Reference

Product of functions functor: f(x) * g(x). More...

#include <MathUtils_FunctorScalar.hxx>

Public Member Functions

 Product (F theF, G theG)
 Constructor from two functions.
 
bool Value (double theX, double &theY) const
 Evaluates product f(theX) * g(theX).
 

Detailed Description

template<typename F, typename G>
class MathUtils::Product< F, G >

Product of functions functor: f(x) * g(x).

Template Parameters
Ffirst function type
Gsecond function type

Constructor & Destructor Documentation

◆ Product()

template<typename F , typename G >
MathUtils::Product< F, G >::Product ( F theF,
G theG )
inline

Constructor from two functions.

Parameters
theFfirst function (multiplicand)
theGsecond function (multiplier)

Member Function Documentation

◆ Value()

template<typename F , typename G >
bool MathUtils::Product< F, G >::Value ( double theX,
double & theY ) const
inline

Evaluates product f(theX) * g(theX).

Parameters
[in]theXinput value
[out]theYproduct value
Returns
false if either evaluation fails

The documentation for this class was generated from the following file: