X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=optimization%2Ftest_functions%2Frosenbrock_hessian.m;h=ccbb84d4ba9e6880a4613ace099210ddbf1a509f;hb=e12c489da09259a1365ae199fb6d7cbe64c9eb19;hp=cd2a2b502a62e4a625046d26119da19430ba8c06;hpb=75563505172dce2cc78116f0884819ca32620dbe;p=octave.git diff --git a/optimization/test_functions/rosenbrock_hessian.m b/optimization/test_functions/rosenbrock_hessian.m index cd2a2b5..ccbb84d 100644 --- a/optimization/test_functions/rosenbrock_hessian.m +++ b/optimization/test_functions/rosenbrock_hessian.m @@ -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