Revision | 72f150ec0035ee6bc1fea56a23b5599f47a92e0f (tree) |
---|---|
Zeit | 2014-01-17 17:17:22 |
Autor | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Use Dnrm2 in BFGS routine. #30379
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1654 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -287,11 +287,7 @@ void BFGS::CalcRFOStep(double* vectorStep, | ||
287 | 287 | } |
288 | 288 | // |
289 | 289 | // Calculate size of the RFO step |
290 | - normStep = 0; | |
291 | - for(int i=0;i<dimension;i++){ | |
292 | - normStep += vectorStep[i] * vectorStep[i]; | |
293 | - } | |
294 | - normStep = sqrt(normStep); | |
290 | + normStep = MolDS_wrappers::Blas::GetInstance()->Dnrm2(dimension, vectorStep); | |
295 | 291 | |
296 | 292 | this->OutputLog(boost::format(this->formatLowestHessianEigenvalue) % vectorEigenValues[0]); |
297 | 293 | this->OutputLog(boost::format(this->format2ndLowestHessianEigenvalue) % vectorEigenValues[1]); |