MADNESS
0.10.1
|
Public Member Functions | |
Tensor< double > | gradient (const Tensor< double > &x) |
Should return the derivative of the function. More... | |
Tensor< double > | gradient (const Tensor< double > &x) |
Should return the derivative of the function. More... | |
bool | provides_gradient () const |
Override this to return true if the derivative is implemented. More... | |
bool | provides_gradient () const |
Override this to return true if the derivative is implemented. More... | |
double | value (const Tensor< double > &x) |
Should return the value of the objective function. More... | |
double | value (const Tensor< double > &x) |
Should return the value of the objective function. More... | |
Public Member Functions inherited from madness::OptimizationTargetInterface | |
virtual | ~OptimizationTargetInterface () |
double | test_gradient (Tensor< double > &x, double value_precision, bool doprint=true) |
Numerical test of the derivative ... optionally prints to stdout, returns max abs error. More... | |
virtual void | value_and_gradient (const Tensor< double > &x, double &value, Tensor< double > &gradient) |
Reimplement if more efficient to evaluate both value and gradient in one call. More... | |
Should return the derivative of the function.
Reimplemented from madness::OptimizationTargetInterface.
References madness::BaseTensor::dim(), madness::g, and v.
Should return the derivative of the function.
Reimplemented from madness::OptimizationTargetInterface.
References madness::BaseTensor::dim(), madness::g, and v.
|
inlinevirtual |
Override this to return true if the derivative is implemented.
Reimplemented from madness::OptimizationTargetInterface.
|
inlinevirtual |
Override this to return true if the derivative is implemented.
Reimplemented from madness::OptimizationTargetInterface.
|
inlinevirtual |
Should return the value of the objective function.
Implements madness::OptimizationTargetInterface.
References madness::BaseTensor::dim(), and v.
|
inlinevirtual |
Should return the value of the objective function.
Implements madness::OptimizationTargetInterface.
References madness::BaseTensor::dim(), and v.