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

Public Member Functions

 CoreFittingTarget (World &world, Calculation &calc, CorePotential &cp)
 
tensorT gradient (const tensorT &x)
 Should return the derivative of the function. More...
 
bool provides_gradient () const
 Override this to return true if the derivative is implemented. More...
 
double value (const tensorT &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...
 

Public Attributes

Calculationcalc
 
CorePotentialcp
 
tensorT lastx
 
double r
 
Worldworld
 
double xsq
 

Constructor & Destructor Documentation

◆ CoreFittingTarget()

CoreFittingTarget::CoreFittingTarget ( World world,
Calculation calc,
CorePotential cp 
)
inline

Member Function Documentation

◆ gradient()

tensorT CoreFittingTarget::gradient ( const tensorT x)
inlinevirtual

◆ provides_gradient()

bool CoreFittingTarget::provides_gradient ( ) const
inlinevirtual

Override this to return true if the derivative is implemented.

Reimplemented from madness::OptimizationTargetInterface.

◆ value()

double CoreFittingTarget::value ( const tensorT x)
inlinevirtual

Member Data Documentation

◆ calc

Calculation& CoreFittingTarget::calc

◆ cp

CorePotential& CoreFittingTarget::cp

◆ lastx

tensorT CoreFittingTarget::lastx
mutable

◆ r

double CoreFittingTarget::r
mutable

◆ world

World& CoreFittingTarget::world

◆ xsq

double CoreFittingTarget::xsq
mutable

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