aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/makefile5
-rw-r--r--test/test_cg.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/test/makefile b/test/makefile
index bebfc9c..be076dd 100644
--- a/test/makefile
+++ b/test/makefile
@@ -1,4 +1,4 @@
-targets=test_optimizer many_dims test_fitter
+targets=test_optimizer many_dims test_fitter test_cg
all:$(targets)
@@ -11,5 +11,8 @@ many_dims:many_dims.cpp
test_fitter:test_fitter.cpp
$(CXX) $< -o $@ -I .. -O3 -g
+test_cg:test_cg.cpp
+ $(CXX) $< -o $@ -I .. -O3 -g
+
clean:
rm -f $(targets) *.o *~
diff --git a/test/test_cg.cpp b/test/test_cg.cpp
index cb89f71..b32c783 100644
--- a/test/test_cg.cpp
+++ b/test/test_cg.cpp
@@ -47,7 +47,7 @@ int main()
opt.set_opt_method(conjugate_gradient<double,vector<double> >());
//opt.set_opt_method(powell_method<double,vector<double> >());
opt.set_func_obj(foo());
- std::vector<double> p(30);
+ std::vector<double> p(300);
for(int i=0;i<p.size();++i)
{
p[i]=100;