MADNESS 0.10.1
Test Struct Reference
Inheritance diagram for Test:
Collaboration diagram for Test:

Public Member Functions

Tensor< double > gradient (const Tensor< double > &x)
 Should return the derivative of the function.
Tensor< double > gradient (const Tensor< double > &x)
 Should return the derivative of the function.
bool provides_gradient () const
 Override this to return true if the derivative is implemented.
bool provides_gradient () const
 Override this to return true if the derivative is implemented.
double value (const Tensor< double > &x)
 Should return the value of the objective function.
double value (const Tensor< double > &x)
 Should return the value of the objective function.
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.
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.

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: