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

If we have both a decomposable const Evaluate() and a decomposable const Gradient() but not a decomposable const EvaluateWithGradient(), add a decomposable const EvaluateWithGradient() method. More...

Public Member Functions

double EvaluateWithGradient (const arma::mat &coordinates, const size_t begin, arma::mat &gradient, const size_t batchSize) const
 Return both the evaluated objective function and its gradient, storing the gradient in the given matrix, starting at the given decomposable function and using the given batch size. More...
 

Detailed Description

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

If we have both a decomposable const Evaluate() and a decomposable const Gradient() but not a decomposable const EvaluateWithGradient(), add a decomposable const EvaluateWithGradient() method.

Definition at line 157 of file add_decomposable_evaluate_with_gradient.hpp.

Member Function Documentation

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

Return both the evaluated objective function and its gradient, storing the gradient in the given matrix, starting at the given decomposable function and using the given batch size.

Parameters
coordinatesCoordinates to evaluate the function at.
beginIndex of decomposable function to begin with.
gradientMatrix to store the gradient into.
batchSizeNumber of decomposable functions to evaluate.

Definition at line 170 of file add_decomposable_evaluate_with_gradient.hpp.


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