]> gitweb.michael.orlitzky.com - octave.git/blobdiff - optimization/test_functions/rosenbrock_hessian.m
Fix p/g mixup that I just put back.
[octave.git] / optimization / test_functions / rosenbrock_hessian.m
index cd2a2b502a62e4a625046d26119da19430ba8c06..ccbb84d4ba9e6880a4613ace099210ddbf1a509f 100644 (file)
@@ -1,11 +1,11 @@
 function H = rosenbrock_hessian(x1, x2)
-  ##
-  ## The Hessian of the Rosenbrock function. See rosenbrock.m for more
-  ## information.
-  ##
+  %
+  % The Hessian of the Rosenbrock function. See rosenbrock.m for more
+  % information.
+  %
   H = zeros(2,2);
   H(1,1) = 1200*x1^2 - 400*x2 + 2;
   H(1,2) = -400*x1;
-  H(2,1) = -400*x1;
+  H(2,1) = H(1,2);
   H(2,2) = 200;
 end