mlpack  3.0.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
AddEvaluateWithGradientStatic< FunctionType, true, false > Class Template Reference

If the FunctionType has static Evaluate() and static Gradient(), provide static EvaluateWithGradient(). More...

Static Public Member Functions

static double EvaluateWithGradient (const arma::mat &coordinates, arma::mat &gradient)
 Return both the evaluated objective function and its gradient, storing the gradient in the given matrix. More...
 

Detailed Description

template<typename FunctionType>
class mlpack::optimization::AddEvaluateWithGradientStatic< FunctionType, true, false >

If the FunctionType has static Evaluate() and static Gradient(), provide static EvaluateWithGradient().

Definition at line 204 of file add_evaluate_with_gradient.hpp.

Member Function Documentation

static double EvaluateWithGradient ( const arma::mat &  coordinates,
arma::mat &  gradient 
)
inlinestatic

Return both the evaluated objective function and its gradient, storing the gradient in the given matrix.

Parameters
coordinatesCoordinates to evaluate the function at.
gradientMatrix to store the gradient into.

Definition at line 214 of file add_evaluate_with_gradient.hpp.


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