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

Comparing branches/new_design/OOPSE-3.0/src/math/SquareMatrix3.hpp (file contents):
Revision 1695 by tim, Mon Nov 1 22:52:57 2004 UTC vs.
Revision 1804 by tim, Tue Nov 30 19:58:25 2004 UTC

# Line 453 | Line 453 | namespace oopse {
453                          result(i, j)  += m1(i, k) * m2(k, j);                
454  
455          return result;
456 +    }
457 +
458 +    template<typename Real>
459 +    inline SquareMatrix3<Real> outProduct(const Vector3<Real>& v1, const Vector3<Real>& v2) {
460 +        SquareMatrix3<Real> result;
461 +
462 +            for (unsigned int i = 0; i < 3; i++) {
463 +                for (unsigned int j = 0; j < 3; j++) {
464 +                        result(i, j)  = v1[i] * v2[j];                
465 +                }
466 +            }
467 +            
468 +        return result;        
469      }
470  
471 +    
472      typedef SquareMatrix3<double> Mat3x3d;
473      typedef SquareMatrix3<double> RotMat3x3d;
474  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines