mlpack  git-master
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

◆ EvaluateWithGradient()

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: