mlpack  git-master
AddGradientStatic< FunctionType, true, false > Class Template Reference

If we have EvaluateWithGradient() but no existing Gradient(), add a Gradient() without a using directive to make the base Gradient() accessible. More...

Static Public Member Functions

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

 

Detailed Description


template
<
typename
FunctionType
>

class mlpack::optimization::AddGradientStatic< FunctionType, true, false >

If we have EvaluateWithGradient() but no existing Gradient(), add a Gradient() without a using directive to make the base Gradient() accessible.

Definition at line 168 of file add_gradient.hpp.

Member Function Documentation

◆ Gradient()

static void Gradient ( const arma::mat &  coordinates,
arma::mat &  gradient 
)
inlinestatic

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 177 of file add_gradient.hpp.


The documentation for this class was generated from the following file:
  • /var/www/www.mlpack.org/mlpack-git/src/mlpack/core/optimizers/function/add_gradient.hpp