ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/math/SquareMatrix3.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/math/SquareMatrix3.hpp (file contents):
Revision 2336 by tim, Wed Sep 28 16:55:57 2005 UTC vs.
Revision 2583 by tim, Thu Feb 2 17:14:15 2006 UTC

# Line 316 | Line 316 | namespace oopse {
316  
317        m /= det;
318        return m;
319 +    }
320 +
321 +    SquareMatrix3<Real> transpose() const{
322 +      SquareMatrix3<Real> result;
323 +                
324 +      for (unsigned int i = 0; i < 3; i++)
325 +        for (unsigned int j = 0; j < 3; j++)              
326 +          result(j, i) = this->data_[i][j];
327 +
328 +      return result;
329      }
330      /**
331       * Extract the eigenvalues and eigenvectors from a 3x3 matrix.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines