mlpack  git-master
AddEvaluateConst< FunctionType, HasEvaluateWithGradient, HasEvaluate > Class Template Reference

The AddEvaluateConst mixin class will provide a const Evaluate() method if the given FunctionType has EvaluateWithGradient() const, or nothing otherwise. More...

Inheritance diagram for AddEvaluateConst< FunctionType, HasEvaluateWithGradient, HasEvaluate >:

Public Member Functions

double Evaluate (traits::UnconstructableType &) const
 

Detailed Description


template<typename FunctionType, bool HasEvaluateWithGradient = traits::HasEvaluateWithGradient<FunctionType, traits::EvaluateWithGradientConstForm>::value, bool HasEvaluate = traits::HasEvaluate<FunctionType, traits::EvaluateConstForm>::value>
class mlpack::optimization::AddEvaluateConst< FunctionType, HasEvaluateWithGradient, HasEvaluate >

The AddEvaluateConst mixin class will provide a const Evaluate() method if the given FunctionType has EvaluateWithGradient() const, or nothing otherwise.

Definition at line 87 of file add_evaluate.hpp.

Member Function Documentation

◆ Evaluate()

double Evaluate ( traits::UnconstructableType ) const

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