]> gitweb.michael.orlitzky.com - octave.git/blob - rosenbrock_gradient1.m
29fa3938c0c4411470dc7a484e88fe1a73384b99
[octave.git] / rosenbrock_gradient1.m
1 function g = rosenbrock_gradient1(x)
2 %
3 % A version of the rosenbrock_gradient() function which takes a
4 % column 2-vector instead of two distinct arguments. See
5 % rosenbrock_gradient.m for more information.
6 %
7 if (length(x) == 2)
8 g = rosenbrock_gradient(x(1), x(2));
9 else
10 g = NA;
11 end
12 end