Public Methods |
virtual double | value (const std::vector< double > &x) const=0 |
| Scalar value of the function.
|
virtual const std::vector<
double > & | grad (const std::vector< double > &x) const=0 |
| Gradient of the function. The result is valid only if hasGradient()==true. Otherwise the result is some default (empty) data-point.
|
virtual bool | hasGradient () const=0 |
| Determine whether function is able to compute gradient.
|
virtual int | dimension () const=0 |
| Dimensionality of the domain space.
|
virtual void | toAscii (std_ostream &os) const=0 |
| Dump textual representation on output stream.
|
virtual bool | isEqual (const IFunction *f) const=0 |
| Compare if functions are the same. PENDING: define exactly what it means.
|
virtual | ~IFunction () |