12 #ifndef MLPACK_CORE_OPTIMIZERS_GD_TEST_FUNCTION_HPP 13 #define MLPACK_CORE_OPTIMIZERS_GD_TEST_FUNCTION_HPP 18 namespace optimization {
35 double Evaluate(
const arma::mat& coordinates)
const;
38 void Gradient(
const arma::mat& coordinates, arma::mat& gradient)
const;
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
GDTestFunction()
Nothing to do for the constructor.
void Gradient(const arma::mat &coordinates, arma::mat &gradient) const
Evaluate the gradient of a function.
Very, very simple test function which is the composite of three other functions.
double Evaluate(const arma::mat &coordinates) const
Evaluate a function.
arma::mat GetInitialPoint() const
Get the starting point.