aboutsummaryrefslogtreecommitdiffstats
path: root/methods/linmin
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-01-06 10:35:24 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-01-06 10:35:24 +0000
commitd2de20ef215b386c7a4dbedc437a884595a909a3 (patch)
treef73e108ec8398f0ba32b71211ce0ae1979dd32e7 /methods/linmin
parentecd625f55e583a1960f2fc82507132a05fc6fbc4 (diff)
downloadopt-utilities-d2de20ef215b386c7a4dbedc437a884595a909a3.tar.bz2
Parallelized for the powell method
git-svn-id: file:///home/svn/opt_utilities@159 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'methods/linmin')
-rw-r--r--methods/linmin/linmin.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/methods/linmin/linmin.hpp b/methods/linmin/linmin.hpp
index ddf2a8e..9ec1dd8 100644
--- a/methods/linmin/linmin.hpp
+++ b/methods/linmin/linmin.hpp
@@ -53,6 +53,7 @@ namespace opt_utilities
pT xt;
opt_eq(xt,p1);
+#pragma omp parallel for
for(size_t i=0;i<get_size(xt);++i)
{
//get_element(xt,i)+=x*get_element((pT)xi1,i);
@@ -88,6 +89,7 @@ namespace opt_utilities
//cout<<xx<<endl;
fret=brent(ax,xx,bx,fadpt,TOL,xmin);
//cout<<xmin<<endl;
+#pragma omp parallel for
for(j=0;j<n;++j)
{
//get_element(xi,j)*=xmin;