MADNESS  0.10.1
Public Member Functions | List of all members
Test Struct Reference
Inheritance diagram for Test:
Inheritance graph
[legend]
Collaboration diagram for Test:
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> Test::gradient ( const Tensor< double > &  x)
inlinevirtual

Should return the derivative of the function.

Reimplemented from madness::OptimizationTargetInterface.

◆ gradient() [2/2]

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

Should return the derivative of the function.

Reimplemented from madness::OptimizationTargetInterface.

◆ provides_gradient() [1/2]

bool Test::provides_gradient ( ) const
inlinevirtual

Override this to return true if the derivative is implemented.

Reimplemented from madness::OptimizationTargetInterface.

◆ provides_gradient() [2/2]

bool Test::provides_gradient ( ) const
inlinevirtual

Override this to return true if the derivative is implemented.

Reimplemented from madness::OptimizationTargetInterface.

◆ value() [1/2]

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

Should return the value of the objective function.

Implements madness::OptimizationTargetInterface.

References madness::Tensor< T >::sumsq().

◆ value() [2/2]

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

Should return the value of the objective function.

Implements madness::OptimizationTargetInterface.

References madness::Tensor< T >::sumsq().


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