From 615c70adb468de9b653930412ba87937f8e7f76b Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Tue, 19 May 2015 00:11:23 +0800 Subject: openmp cont --- model/ranksvmtn.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/model/ranksvmtn.cpp b/model/ranksvmtn.cpp index 8448a8a..426de3a 100644 --- a/model/ranksvmtn.cpp +++ b/model/ranksvmtn.cpp @@ -66,9 +66,8 @@ int cal_Hs(RidList &D,const vector &rank,const VectorXd &corr,const VectorX g+=Ds[rank[i-j]]; } VectorXd tmp = alpha.cwiseProduct(Ds)-gamma; - VectorXd res = 0*s; - for (int i=0;i &res){ res.clear(); - for (int i=0;i