mlpack  git-master
AddDecomposableEvaluateWithGradientConst< FunctionType, HasDecomposableEvaluateGradient, HasDecomposableEvaluateWithGradient > Class Template Reference

The AddDecomposableEvaluateWithGradientConst mixin class will add a decomposable const EvaluateWithGradient() method if both a decomposable const Evaluate() and a decomposable const Gradient() function exist, or nothing otherwise. More...

Inheritance diagram for AddDecomposableEvaluateWithGradientConst< FunctionType, HasDecomposableEvaluateGradient, HasDecomposableEvaluateWithGradient >:

Public Member Functions

double EvaluateWithGradient (traits::UnconstructableType &, const size_t, const size_t) const
 

Detailed Description


template<typename FunctionType, bool HasDecomposableEvaluateGradient = traits::HasConstSignatures< FunctionType, traits::HasEvaluate, traits::DecomposableEvaluateConstForm, traits::DecomposableEvaluateStaticForm, traits::HasGradient, traits::DecomposableGradientConstForm, traits::DecomposableGradientStaticForm>::value, bool HasDecomposableEvaluateWithGradient = traits::HasEvaluateWithGradient<FunctionType, traits::DecomposableEvaluateWithGradientConstForm>::value>
class mlpack::optimization::AddDecomposableEvaluateWithGradientConst< FunctionType, HasDecomposableEvaluateGradient, HasDecomposableEvaluateWithGradient >

The AddDecomposableEvaluateWithGradientConst mixin class will add a decomposable const EvaluateWithGradient() method if both a decomposable const Evaluate() and a decomposable const Gradient() function exist, or nothing otherwise.

Definition at line 122 of file add_decomposable_evaluate_with_gradient.hpp.

Member Function Documentation

◆ EvaluateWithGradient()

double EvaluateWithGradient ( traits::UnconstructableType ,
const size_t  ,
const size_t   
) const

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