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

Comparing trunk/OOPSE-2.0/src/math/SquareMatrix.hpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 1957 by tim, Tue Jan 25 17:45:23 2005 UTC

# Line 175 | Line 175 | namespace oopse {
175                  return true;
176              }        
177  
178 +            /** Return the transpose of this matrix */
179 +            SquareMatrix<Real,  Dim> transpose() const{
180 +                SquareMatrix<Real,  Dim> result;
181 +                
182 +                for (unsigned int i = 0; i < Dim; i++)
183 +                    for (unsigned int j = 0; j < Dim; j++)              
184 +                        result(j, i) = data_[i][j];
185 +
186 +                return result;
187 +            }
188 +            
189              /** @todo need implementation */
190              void diagonalize() {
191                  //jacobi(m, eigenValues, ortMat);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines