mlpack  git-master
AddDecomposableGradientConst< FunctionType, HasDecomposableEvaluateWithGradient, HasDecomposableGradient > Class Template Reference

The AddDecomposableGradientConst mixin class will add a decomposable const Gradient() method if a decomposable const EvaluateWithGradient() function exists, or nothing otherwise. More...

Inheritance diagram for AddDecomposableGradientConst< FunctionType, HasDecomposableEvaluateWithGradient, HasDecomposableGradient >:

Public Member Functions

void Gradient (traits::UnconstructableType &, const size_t, const size_t) const
 

Detailed Description


template<typename FunctionType, bool HasDecomposableEvaluateWithGradient = traits::HasEvaluateWithGradient<FunctionType, traits::DecomposableEvaluateWithGradientConstForm>::value, bool HasDecomposableGradient = traits::HasGradient<FunctionType, traits::DecomposableGradientConstForm>::value>
class mlpack::optimization::AddDecomposableGradientConst< FunctionType, HasDecomposableEvaluateWithGradient, HasDecomposableGradient >

The AddDecomposableGradientConst mixin class will add a decomposable const Gradient() method if a decomposable const EvaluateWithGradient() function exists, or nothing otherwise.

Definition at line 100 of file add_decomposable_gradient.hpp.

Member Function Documentation

◆ Gradient()

void Gradient ( traits::UnconstructableType ,
const size_t  ,
const size_t   
) const

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