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

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

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

Public Member Functions

double EvaluateWithGradient (traits::UnconstructableType &)
 

Detailed Description


template<typename FunctionType, bool HasEvaluateGradient = traits::HasNonConstSignatures< FunctionType, traits::HasEvaluate, traits::EvaluateForm, traits::EvaluateConstForm, traits::EvaluateStaticForm, traits::HasGradient, traits::GradientForm, traits::GradientConstForm, traits::GradientStaticForm>::value, bool HasEvaluateWithGradient = traits::HasEvaluateWithGradient< FunctionType, traits::EvaluateWithGradientForm>::value>
class mlpack::optimization::AddEvaluateWithGradient< FunctionType, HasEvaluateGradient, HasEvaluateWithGradient >

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

Definition at line 43 of file add_evaluate_with_gradient.hpp.

Member Function Documentation

◆ EvaluateWithGradient()

double EvaluateWithGradient ( traits::UnconstructableType )

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