Add the Rosenbrock functions and their tests.
[octave.git] / optimization / test_functions / rosenbrock1.m
1 function f = rosenbrock1(x)
2 ##
3 ## A version of the Rosenbrock function which takes a column
4 ## 2-vector instead of two distinct arguments. See rosenbrock.m for
5 ## more information.
6 ##
7 if (length(x) == 2)
8 f = rosenbrock(x(1), x(2));
9 else
10 f = NA;
11 end
12 end