• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision72f150ec0035ee6bc1fea56a23b5599f47a92e0f (tree)
Zeit2014-01-17 17:17:22
AutorKatsuhiko Nishimra <ktns.87@gmai...>
CommiterKatsuhiko Nishimra

Log Message

Use Dnrm2 in BFGS routine. #30379

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1654 1136aad2-a195-0410-b898-f5ea1d11b9d8

Ändern Zusammenfassung

Diff

--- a/src/optimization/BFGS.cpp
+++ b/src/optimization/BFGS.cpp
@@ -287,11 +287,7 @@ void BFGS::CalcRFOStep(double* vectorStep,
287287 }
288288 //
289289 // 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);
295291
296292 this->OutputLog(boost::format(this->formatLowestHessianEigenvalue) % vectorEigenValues[0]);
297293 this->OutputLog(boost::format(this->format2ndLowestHessianEigenvalue) % vectorEigenValues[1]);