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

The AddDecomposableEvaluateWithGradient mixin class will add a decomposable EvaluateWithGradient() method if a decomposable Evaluate() method and a decomposable Gradient() method exists, or nothing otherwise. More...

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

Public Member Functions

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

Detailed Description


template<typename FunctionType, bool HasDecomposableEvaluateGradient = traits::HasNonConstSignatures< FunctionType, traits::HasEvaluate, traits::DecomposableEvaluateForm, traits::DecomposableEvaluateConstForm, traits::DecomposableEvaluateStaticForm, traits::HasGradient, traits::DecomposableGradientForm, traits::DecomposableGradientConstForm, traits::DecomposableGradientStaticForm>::value, bool HasDecomposableEvaluateWithGradient = traits::HasEvaluateWithGradient<FunctionType, traits::DecomposableEvaluateWithGradientForm>::value>
class mlpack::optimization::AddDecomposableEvaluateWithGradient< FunctionType, HasDecomposableEvaluateGradient, HasDecomposableEvaluateWithGradient >

The AddDecomposableEvaluateWithGradient mixin class will add a decomposable EvaluateWithGradient() method if a decomposable Evaluate() method and a decomposable Gradient() method exists, or nothing otherwise.

The AddDecomposableEvaluateWithGradient mixin class will provide a decomposable Evaluate() and Gradient() method if the given class has a decomposable EvaluateWithGradient() method, or it will provide a decomposable EvaluateWithGradient() method if the class has a decomposable Evaluate() and Gradient() method, or it will provide nothing in any other case.

Definition at line 41 of file add_decomposable_evaluate_with_gradient.hpp.

Member Function Documentation

◆ EvaluateWithGradient()

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

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