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

Comparing branches/new_design/OOPSE-4/src/math/SquareMatrix3.hpp (file contents):
Revision 1821 by tim, Tue Nov 30 19:58:25 2004 UTC vs.
Revision 1822 by tim, Thu Dec 2 02:08:29 2004 UTC

# Line 260 | Line 260 | namespace oopse {
260  
261                  return(x + y + z);
262              }            
263 +
264 +            /** Returns the trace of this matrix. */
265 +            Real trace() const {
266 +                return data_[0][0] + data_[1][1] + data_[2][2];
267 +            }
268              
269              /**
270               * Sets the value of this matrix to  the inversion of itself.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines