X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=blobdiff_plain;f=optimization%2Fsteepest_descent.m;h=4fb332950b26c055a237ec34c1e04a9a249c0fd4;hp=7a437d36ad529c7f47bc1d2674bf75fb074e3beb;hb=059b7d62db67bcb6e636f2dd7f3cfe415d8d000c;hpb=8c8536a4a03dfdc5975b9f668305a89d1cd56e79;ds=sidebyside diff --git a/optimization/steepest_descent.m b/optimization/steepest_descent.m index 7a437d3..4fb3329 100644 --- a/optimization/steepest_descent.m +++ b/optimization/steepest_descent.m @@ -54,7 +54,7 @@ function [x, k] = steepest_descent(g, x0, step_size, tolerance, max_iterations) % condition (number of iterations). if (norm(gk) < tolerance) - # This catches the k=0 case, too. + % This catches the k=0 case, too. x = xk; return; end