]> gitweb.michael.orlitzky.com - octave.git/blobdiff - optimization/step_length_positive_definite.m
Minor comment update.
[octave.git] / optimization / step_length_positive_definite.m
index b1e5c4802ec96ba749375c44337f9d91d7219e1d..f6248f67b1dd40bf22ebdfed0947ddd6edbc47fa 100644 (file)
@@ -15,7 +15,7 @@ function alpha = step_length_positive_definite(g, Q, p)
   ##
   ## INPUT:
   ##
-  ##   - ``g`` -- The gradient of f.
+  ##   - ``g`` -- The gradient of f at x.
   ##
   ##   - ``Q`` -- The positive-definite matrix in the definition of
   ##     ``f`` above.
@@ -32,5 +32,5 @@ function alpha = step_length_positive_definite(g, Q, p)
   ##
   ## All vectors are assumed to be *column* vectors.
   ##
-  alpha = -(g' * p)/(p' * Q * p)
+  alpha = -(g' * p)/(p' * Q * p);
 end