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

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

Public Member Functions

double EvaluateWithGradient (const arma::mat &coordinates, arma::mat &gradient) const
 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::AddEvaluateWithGradientConst< FunctionType, true, false >

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

Definition at line 140 of file add_evaluate_with_gradient.hpp.

Member Function Documentation

double EvaluateWithGradient ( const arma::mat &  coordinates,
arma::mat &  gradient 
) const
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 150 of file add_evaluate_with_gradient.hpp.


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