mlpack  git-master
AddGradientStatic< FunctionType, HasEvaluateWithGradient, HasGradient > Class Template Reference

The AddGradient mixin class will provide a static Gradient() method if the given FunctionType has static EvaluateWithGradient(), or nothing otherwise. More...

Inheritance diagram for AddGradientStatic< FunctionType, HasEvaluateWithGradient, HasGradient >:

Static Public Member Functions

static void Gradient (traits::UnconstructableType &)
 

Detailed Description


template<typename FunctionType, bool HasEvaluateWithGradient = traits::HasEvaluateWithGradient<FunctionType, traits::EvaluateWithGradientStaticForm>::value, bool HasGradient = traits::HasGradient<FunctionType, traits::GradientStaticForm>::value>
class mlpack::optimization::AddGradientStatic< FunctionType, HasEvaluateWithGradient, HasGradient >

The AddGradient mixin class will provide a static Gradient() method if the given FunctionType has static EvaluateWithGradient(), or nothing otherwise.

Definition at line 142 of file add_gradient.hpp.

Member Function Documentation

◆ Gradient()

static void Gradient ( traits::UnconstructableType )
inlinestatic

Definition at line 146 of file add_gradient.hpp.


The documentation for this class was generated from the following file:
  • /var/www/www.mlpack.org/mlpack-git/src/mlpack/core/optimizers/function/add_gradient.hpp