#include <Differentiator.h>
This is the typical form for an optimization objective function, for example.
Public Types | |
typedef int(* | FuncWrapper )(const GradientFunction &, const Vector &, Real &) |
Public Member Functions | |
virtual int | f (const Vector &y, Real &fy) const =0 |
Protected Member Functions | |
GradientFunction (int ny=-1, Real acc=-1) | |
virtual | ~GradientFunction () |
typedef int(* FuncWrapper)(const GradientFunction &, const Vector &, Real &) |
GradientFunction | ( | int | ny = -1 , |
|
Real | acc = -1 | |||
) | [inline, explicit, protected] |
virtual ~GradientFunction | ( | ) | [inline, protected, virtual] |
virtual int f | ( | const Vector & | y, | |
Real & | fy | |||
) | const [pure virtual] |