#include <func.h>
Class diagram for func::multi_dimensional_with_derivatives:

Public Members | |||
![]() | ![]() | virtual double | operator() ( const vector<double> &x ) const = 0 |
![]() | ![]() | Calculate the function for a given argument. More... | |
![]() | ![]() | virtual void | evaluate ( const vector<double> &x, double &f, vector<double> &gradient ) const = 0 |
![]() | ![]() | Calculate the function and its derivatives for a given argument. More... | |
The class provides additional member functions for calculating the derivative of the function.
Definition at line 196 of file func.h.
virtual double func::multi_dimensional_with_derivatives::operator() (const vector<double>& x) const [pure virtual]
|
Calculate the function for a given argument.
| x | the argument for which the function is to be calculated |
Reimplemented from func::multi_dimensional.
Reimplemented in test::mag2, test::vecone, and total_energy_function.
virtual void func::multi_dimensional_with_derivatives::evaluate (const vector<double>& x, double & e, vector<double>& gradient) const [pure virtual]
|
Calculate the function and its derivatives for a given argument.
| x | the argument for which the function is to be calculated |
| f | the value of the function for argument x |
| gradient | the derivative of the function for argument x |
Reimplemented in test::mag2, test::vecone, and total_energy_function.
1.0.0 written by Dimitri van Heesch,
© 1997-1999