mlpack  git-master
AddEvaluateWithGradientConst< FunctionType, HasEvaluateGradient, HasEvaluateWithGradient > Class Template Reference

The AddEvaluateWithGradient mixin class will provide an EvaluateWithGradient() const method if the given FunctionType has both Evaluate() const and Gradient() const, or it will provide nothing otherwise. More...

Inheritance diagram for AddEvaluateWithGradientConst< FunctionType, HasEvaluateGradient, HasEvaluateWithGradient >:

Public Member Functions

double EvaluateWithGradient (traits::UnconstructableType &) const
 

Detailed Description


template<typename FunctionType, bool HasEvaluateGradient = traits::HasConstSignatures< FunctionType, traits::HasEvaluate, traits::EvaluateConstForm, traits::EvaluateStaticForm, traits::HasGradient, traits::GradientConstForm, traits::GradientStaticForm>::value, bool HasEvaluateWithGradient = traits::HasEvaluateWithGradient< FunctionType, traits::EvaluateWithGradientConstForm>::value>
class mlpack::optimization::AddEvaluateWithGradientConst< FunctionType, HasEvaluateGradient, HasEvaluateWithGradient >

The AddEvaluateWithGradient mixin class will provide an EvaluateWithGradient() const method if the given FunctionType has both Evaluate() const and Gradient() const, or it will provide nothing otherwise.

Definition at line 110 of file add_evaluate_with_gradient.hpp.

Member Function Documentation

◆ EvaluateWithGradient()

double EvaluateWithGradient ( traits::UnconstructableType ) const

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