MADNESS  0.10.1
Public Member Functions | List of all members
Test2 Struct Reference
Inheritance diagram for Test2:
Inheritance graph
[legend]
Collaboration diagram for Test2:
Collaboration graph
[legend]

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...
 

Member Function Documentation

◆ gradient() [1/2]

Tensor<double> Test2::gradient ( const Tensor< double > &  x)
inlinevirtual

Should return the derivative of the function.

Reimplemented from madness::OptimizationTargetInterface.

References madness::BaseTensor::dim(), madness::g, and v.

◆ gradient() [2/2]

Tensor<double> Test2::gradient ( const Tensor< double > &  x)
inlinevirtual

Should return the derivative of the function.

Reimplemented from madness::OptimizationTargetInterface.

References madness::BaseTensor::dim(), madness::g, and v.

◆ provides_gradient() [1/2]

bool Test2::provides_gradient ( ) const
inlinevirtual

Override this to return true if the derivative is implemented.

Reimplemented from madness::OptimizationTargetInterface.

◆ provides_gradient() [2/2]

bool Test2::provides_gradient ( ) const
inlinevirtual

Override this to return true if the derivative is implemented.

Reimplemented from madness::OptimizationTargetInterface.

◆ value() [1/2]

double Test2::value ( const Tensor< double > &  x)
inlinevirtual

Should return the value of the objective function.

Implements madness::OptimizationTargetInterface.

References madness::BaseTensor::dim(), and v.

◆ value() [2/2]

double Test2::value ( const Tensor< double > &  x)
inlinevirtual

Should return the value of the objective function.

Implements madness::OptimizationTargetInterface.

References madness::BaseTensor::dim(), and v.


The documentation for this struct was generated from the following files: