mlpack  git-master
AddEvaluateWithGradient< FunctionType, true, false > Class Template Reference

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

Public Member Functions

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::AddEvaluateWithGradient< FunctionType, true, false >

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

Definition at line 72 of file add_evaluate_with_gradient.hpp.

Member Function Documentation

◆ EvaluateWithGradient()

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

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 82 of file add_evaluate_with_gradient.hpp.


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