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

If the FunctionType has Evaluate() and Gradient() but not EvaluateWithGradient(), we will provide the latter. More...

Inheritance diagram for AddDecomposableEvaluateWithGradient< FunctionType, true, true, false >:
Inheritance graph
[legend]

Public Member Functions

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

If the FunctionType has Evaluate() and Gradient() but not EvaluateWithGradient(), we will provide the latter.

Definition at line 112 of file add_decomposable_evaluate_with_gradient_const.hpp.

Member Function Documentation

double EvaluateWithGradient ( const arma::mat &  coordinates,
const size_t  begin,
arma::mat &  gradient,
const size_t  batchSize 
)
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 123 of file add_decomposable_evaluate_with_gradient_const.hpp.


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