]> gitweb.michael.orlitzky.com - octave.git/commitdiff
Fix p/g mixup that I just put back.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 26 Mar 2013 00:54:09 +0000 (20:54 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 26 Mar 2013 00:54:09 +0000 (20:54 -0400)
optimization/step_length_positive_definite.m

index b9fe48efa52144ab6c6fdb05f06cf3c5e8b6a9dd..255efbac78fd2df4fbc4704fc379e87f624ad77e 100644 (file)
@@ -41,5 +41,5 @@ function alpha = step_length_positive_definite(g, Q, p)
     denom = eps;
   end
 
-  alpha = (g' * g)/denom;
+  alpha = -(g' * p)/denom;
 end