mlpack  git-master
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 >:

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

◆ Gradient()

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: