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

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

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

Public Member Functions

void Gradient (traits::UnconstructableType &)
 

Detailed Description


template<typename FunctionType, bool HasEvaluateWithGradient = traits::HasEvaluateWithGradient<FunctionType, traits::EvaluateWithGradientForm>::value, bool HasGradient = traits::HasGradient<FunctionType, traits::GradientForm>::value>
class mlpack::optimization::AddGradient< FunctionType, HasEvaluateWithGradient, HasGradient >

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

Definition at line 32 of file add_gradient.hpp.

Member Function Documentation

◆ Gradient()

void Gradient ( traits::UnconstructableType )
inline

Definition at line 36 of file add_gradient.hpp.


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