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

Public Member Functions

 MySteepestDescent (const std::shared_ptr< OptimizationTargetInterface > &target, double tol=1e-6, double value_precision=1e-12, double gradient_precision=1e-12)
 
virtual ~MySteepestDescent ()
 
bool check_positive (tensorT &x)
 
bool converged () const
 
double gradient_norm () const
 
bool optimize (Tensor< double > &x)
 
double value () const
 
- Public Member Functions inherited from madness::OptimizerInterface
virtual ~OptimizerInterface ()
 

Private Attributes

double f
 
double gnorm
 
std::shared_ptr< OptimizationTargetInterfacetarget
 
const double tol
 

Constructor & Destructor Documentation

◆ MySteepestDescent()

MySteepestDescent::MySteepestDescent ( const std::shared_ptr< OptimizationTargetInterface > &  target,
double  tol = 1e-6,
double  value_precision = 1e-12,
double  gradient_precision = 1e-12 
)
inline

References target().

◆ ~MySteepestDescent()

virtual MySteepestDescent::~MySteepestDescent ( )
inlinevirtual

Member Function Documentation

◆ check_positive()

bool MySteepestDescent::check_positive ( tensorT x)
inline

◆ converged()

bool MySteepestDescent::converged ( ) const
inlinevirtual

◆ gradient_norm()

double MySteepestDescent::gradient_norm ( ) const
inlinevirtual

◆ optimize()

bool MySteepestDescent::optimize ( Tensor< double > &  x)
inlinevirtual

◆ value()

double MySteepestDescent::value ( ) const
inlinevirtual

Implements madness::OptimizerInterface.

References madness::f.

Member Data Documentation

◆ f

double MySteepestDescent::f
private

◆ gnorm

double MySteepestDescent::gnorm
private

◆ target

std::shared_ptr<OptimizationTargetInterface> MySteepestDescent::target
private

◆ tol

const double MySteepestDescent::tol
private

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