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

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

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

Public Member Functions

void Gradient (traits::UnconstructableType &) const
 

Detailed Description


template<typename FunctionType, bool HasEvaluateWithGradient = traits::HasEvaluateWithGradient<FunctionType, traits::EvaluateWithGradientConstForm>::value, bool HasGradient = traits::HasGradient<FunctionType, traits::GradientConstForm>::value>
class mlpack::optimization::AddGradientConst< FunctionType, HasEvaluateWithGradient, HasGradient >

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

Definition at line 86 of file add_gradient.hpp.

Member Function Documentation

◆ Gradient()

void Gradient ( traits::UnconstructableType ) const
inline

Definition at line 90 of file add_gradient.hpp.


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