add_gradient.hpp File Reference
Include dependency graph for add_gradient.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

 
class  AddGradient< FunctionType, HasEvaluateWithGradient, true >
 Reflect the existing Gradient(). More...

 
class  AddGradient< FunctionType, true, false >
 If we have EvaluateWithGradient() but no existing Gradient(), add an Gradient() without a using directive to make the base Gradient() accessible. More...

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

 
class  AddGradientConst< FunctionType, HasEvaluateWithGradient, true >
 Reflect the existing Gradient(). More...

 
class  AddGradientConst< FunctionType, true, false >
 If we have EvaluateWithGradient() but no existing Gradient(), add a Gradient() without a using directive to make the base Gradient() accessible. More...

 
class  AddGradientStatic< FunctionType, HasEvaluateWithGradient, HasGradient >
 The AddGradient mixin class will provide a static Gradient() method if the given FunctionType has static EvaluateWithGradient(), or nothing otherwise. More...

 
class  AddGradientStatic< FunctionType, HasEvaluateWithGradient, true >
 Reflect the existing Gradient(). More...

 
class  AddGradientStatic< FunctionType, true, false >
 If we have EvaluateWithGradient() but no existing Gradient(), add a Gradient() without a using directive to make the base Gradient() accessible. More...

 

Namespaces

 mlpack
 
.hpp
 
 mlpack::optimization
 

Detailed Description

Author
Ryan Curtin

This file defines a mixin for the Function class that will ensure that the function Gradient() is avaiable if EvaluateWithGradient() is available.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Definition in file add_gradient.hpp.