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

If we have a decomposable static Evaluate() and a decomposable static Gradient() but not a decomposable static EvaluateWithGradient(), add a decomposable static Gradient() 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::AddDecomposableEvaluateWithGradientStatic< FunctionType, true, false >

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

Definition at line 233 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 246 of file add_decomposable_evaluate_with_gradient.hpp.


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