Interface for multi-dimensional function objects.
More...
#include <cfl/MultiFunction.hpp>
This is the abstract class for multi-dimensional function objects. A dynamically allocated implementation of this interface is used to construct the standard multi-dimensional function class MultiFunction.
- See also
- MultiFunction
virtual cfl::IMultiFunction::~IMultiFunction |
( |
| ) |
|
|
inlinevirtual |
virtual bool cfl::IMultiFunction::belongs |
( |
const std::valarray< double > & |
rX | ) |
const |
|
pure virtual |
Returns true
if argument belongs to the domain of the function. Returns false
otherwise.
- Parameters
-
rX | The argument of the function. The size of this array should equal the dimension of the function. |
- Returns
True
if argument belongs to the domain of the function and false
otherwise.
virtual unsigned cfl::IMultiFunction::dim |
( |
| ) |
const |
|
pure virtual |
Returns the dimension of the function.
- Returns
- The dimension of the function.
virtual double cfl::IMultiFunction::operator() |
( |
const std::valarray< double > & |
rX | ) |
const |
|
pure virtual |
Returns the value of the function at rX.
- Parameters
-
rX | The argument of the function. The size of this array should equal the dimension of the function. |
- Returns
- The value of the function at rX.
The documentation for this class was generated from the following file: