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

Comparing trunk/src/math/RectMatrix.hpp (file contents):
Revision 1932 by gezelter, Mon Aug 5 21:46:11 2013 UTC vs.
Revision 1933 by gezelter, Fri Aug 23 15:59:23 2013 UTC

# Line 603 | Line 603 | namespace OpenMD {
603     * @return the cross product (vector product) of t1 and t2
604     */
605    template<typename Real, unsigned int Row, unsigned int Col>
606 <  inline Vector<Real, Row> cross( const RectMatrix<Real, Row, Col>& t1,
606 >  inline Vector<Real, Row> mCross( const RectMatrix<Real, Row, Col>& t1,
607                                    const RectMatrix<Real, Row, Col>& t2 ) {
608      Vector<Real, Row> result;
609      unsigned int i1;
# Line 615 | Line 615 | namespace OpenMD {
615        for (unsigned int j = 0; j < Col; j++) {
616          result[i] += t1(i1,j) * t2(i2,j) - t1(i2,j) * t2(i1,j);
617        }
618 <    }    
618 >    }
619      return result;
620    }
621    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines