Skip to content

Commit

Permalink
Merge pull request #55 from rcurtin/typo
Browse files Browse the repository at this point in the history
Fix typo in return types.
  • Loading branch information
rcurtin authored Nov 29, 2018
2 parents ad0b1c2 + 172fdc8 commit 992975f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/function_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class DifferentiableFunctionType
{
public:
// Given parameters x, return the value of f(x).
void Evaluate(const arma::mat& x);
double Evaluate(const arma::mat& x);

// Given parameters x and a matrix g, store f'(x) in the provided matrix g.
// g should have the same size (rows, columns) as x.
Expand Down Expand Up @@ -558,10 +558,10 @@ class LinearRegressionFunction
// functions starting with f_i(x) and ending with
// f_{i + batchSize - 1}(x), and also compute the gradient of those functions
// and store them in g.
void EvaluateWithGradient(const arma::mat& x,
const size_t i,
arma::mat& g,
const size_t batchSize)
double EvaluateWithGradient(const arma::mat& x,
const size_t i,
arma::mat& g,
const size_t batchSize)
{
// This slightly complex implementation uses Armadillo submatrices to
// compute the objective functions and gradients simultaneously for
Expand Down

0 comments on commit 992975f

Please sign in to comment.