|
mlpack
3.0.4
|
If we have a decomposable const EvaluateWithGradient() but not a decomposable const Gradient(), add a decomposable const Gradient() method. More...
Public Member Functions | |
| void | Gradient (const arma::mat &coordinates, const size_t begin, arma::mat &gradient, const size_t batchSize) const |
| Calculate the gradient and store it in the given matrix, starting at the given decomposable function index and using the given batch size. More... | |
If we have a decomposable const EvaluateWithGradient() but not a decomposable const Gradient(), add a decomposable const Gradient() method.
Definition at line 132 of file add_decomposable_gradient.hpp.
|
inline |
Calculate the gradient and store it in the given matrix, starting at the given decomposable function index and using the given batch size.
| coordinates | Coordinates to evaluate the function at. |
| begin | Index of decomposable function to start at. |
| gradient | Matrix to store the gradient into. |
| batchSize | Number of decomposable functions to calculate for. |
Definition at line 144 of file add_decomposable_gradient.hpp.
1.8.5