|
mlpack
3.0.4
|
If the FunctionType has Evaluate() const and Gradient() const, provide EvaluateWithGradient() const. More...
Public Member Functions | |
| double | EvaluateWithGradient (const arma::mat &coordinates, arma::mat &gradient) const |
| Return both the evaluated objective function and its gradient, storing the gradient in the given matrix. More... | |
If the FunctionType has Evaluate() const and Gradient() const, provide EvaluateWithGradient() const.
Definition at line 140 of file add_evaluate_with_gradient.hpp.
|
inline |
Return both the evaluated objective function and its gradient, storing the gradient in the given matrix.
| coordinates | Coordinates to evaluate the function at. |
| gradient | Matrix to store the gradient into. |
Definition at line 150 of file add_evaluate_with_gradient.hpp.
1.8.5