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, false, true > Class Template Reference

If the FunctionType has EvaluateWithGradient() but not Gradient(), provide that function. More...

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

Public Member Functions

void Gradient (const arma::mat &coordinates, const size_t begin, arma::mat &gradient, const size_t batchSize)
 Calculate the gradient and store it in the given matrix. More...
 

Detailed Description

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

If the FunctionType has EvaluateWithGradient() but not Gradient(), provide that function.

Definition at line 164 of file add_decomposable_evaluate_with_gradient_const.hpp.

Member Function Documentation

void Gradient ( const arma::mat &  coordinates,
const size_t  begin,
arma::mat &  gradient,
const size_t  batchSize 
)
inline

Calculate the gradient and store it in the given matrix.

Parameters
coordinatesCoordinates to evaluate the function at.
gradientMatrix to store the gradient into.

Definition at line 174 of file add_decomposable_evaluate_with_gradient_const.hpp.


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