• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Révision7c76152af3a4c8570688a9e9ced4cb5f9161c3f9 (tree)
l'heure2013-03-10 07:12:23
AuteurMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Message de Log

refactoring Cndo2::RotateDiatmicOverlapAOsToSpaceFrame #30829

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

Change Summary

Modification

--- a/src/cndo/Cndo2.cpp
+++ b/src/cndo/Cndo2.cpp
@@ -5815,18 +5815,20 @@ void Cndo2::RotateDiatmicOverlapAOsToSpaceFrame(double** diatomicOverlapAOs,
58155815 }
58165816 }
58175817 // rotate
5818- for(int i=0; i<OrbitalType_end; i++){
5819- for(int j=0; j<OrbitalType_end; j++){
5820- diatomicOverlapAOs[i][j] = 0.0;
5821- for(int k=0; k<OrbitalType_end; k++){
5822- for(int l=0; l<OrbitalType_end; l++){
5823- diatomicOverlapAOs[i][j] += oldDiatomicOverlapAOs[k][l]
5824- *rotatingMatrix[i][k]
5825- *rotatingMatrix[j][l];
5826- }
5827- }
5828- }
5829- }
5818+ bool isColumnMajorRotatingMatrix = false;
5819+ bool isColumnMajorOldDiatomicOverlap = false;
5820+ double alpha = 1.0;
5821+ double beta = 0.0;
5822+ MolDS_wrappers::Blas::GetInstance()->Dgemmm(isColumnMajorRotatingMatrix,
5823+ isColumnMajorOldDiatomicOverlap,
5824+ !isColumnMajorRotatingMatrix,
5825+ OrbitalType_end, OrbitalType_end, OrbitalType_end, OrbitalType_end,
5826+ alpha,
5827+ rotatingMatrix,
5828+ oldDiatomicOverlapAOs,
5829+ rotatingMatrix,
5830+ beta,
5831+ diatomicOverlapAOs);
58305832 }
58315833 catch(MolDSException ex){
58325834 MallocerFreer::GetInstance()->Free<double>(&oldDiatomicOverlapAOs, OrbitalType_end, OrbitalType_end);