ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/math/RectMatrix.hpp
(Generate patch)

Comparing branches/development/src/math/RectMatrix.hpp (file contents):
Revision 1808 by gezelter, Mon Oct 22 20:42:10 2012 UTC vs.
Revision 1820 by gezelter, Tue Dec 18 16:23:13 2012 UTC

# Line 581 | Line 581 | namespace OpenMD {
581      Vector<Real, Row> result;
582      unsigned int i1;
583      unsigned int i2;
584 <    
584 >  
585      for (unsigned int i = 0; i < Row; i++) {
586 +      //for (unsigned int i = 0; i < Col; i++) {
587        i1 = (i+1)%Row;
588        i2 = (i+2)%Row;
589 <      
590 <      for (unsigned int j =0; j < Col; j++) {        
589 >      //i1 = (i+1)%Col;
590 >      //i2 = (i+2)%Col;
591 >      for (unsigned int j =0; j < Col; j++) {
592 >      //for (unsigned int j =0; j < Row; j++) {
593          result[i] = t1(i1,j) * t2(i2,j) - t1(i2,j) * t2(i1,j);
594 +        //result[i] = t1(j,i1) * t2(j,i2) - t1(j,i2) * t2(j,i1);
595        }
596      }
597      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines