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

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

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

Static Public Member Functions

static double EvaluateWithGradient (traits::UnconstructableType &)
 

Detailed Description


template<typename FunctionType, bool HasEvaluateGradient = traits::HasEvaluate<FunctionType, traits::EvaluateStaticForm>::value && traits::HasGradient<FunctionType, traits::GradientStaticForm>::value, bool HasEvaluateWithGradient = traits::HasEvaluateWithGradient<FunctionType, traits::EvaluateWithGradientStaticForm>::value>
class mlpack::optimization::AddEvaluateWithGradientStatic< FunctionType, HasEvaluateGradient, HasEvaluateWithGradient >

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

Definition at line 176 of file add_evaluate_with_gradient.hpp.

Member Function Documentation

◆ EvaluateWithGradient()

static double EvaluateWithGradient ( traits::UnconstructableType )
static

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