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

Comparing trunk/OOPSE-3.0/src/math/SquareMatrix.hpp (file contents):
Revision 1957 by tim, Tue Jan 25 17:45:23 2005 UTC vs.
Revision 2069 by tim, Tue Mar 1 20:10:14 2005 UTC

# Line 68 | Line 68 | namespace oopse {
68              SquareMatrix() {
69                  for (unsigned int i = 0; i < Dim; i++)
70                      for (unsigned int j = 0; j < Dim; j++)
71 <                        data_[i][j] = 0.0;
71 >                        this->data_[i][j] = 0.0;
72               }
73  
74              /** Constructs and initializes every element of this matrix to a scalar */
# Line 129 | Line 129 | namespace oopse {
129                 Real tmp = 0;
130                
131                  for (unsigned int i = 0; i < Dim ; i++)
132 <                    tmp += data_[i][i];
132 >                    tmp += this->data_[i][i];
133  
134                  return tmp;
135              }
# Line 138 | Line 138 | namespace oopse {
138              bool isSymmetric() const {
139                  for (unsigned int i = 0; i < Dim - 1; i++)
140                      for (unsigned int j = i; j < Dim; j++)
141 <                        if (fabs(data_[i][j] - data_[j][i]) > oopse::epsilon)
141 >                        if (fabs(this->data_[i][j] - this->data_[j][i]) > oopse::epsilon)
142                              return false;
143                          
144                  return true;
# Line 157 | Line 157 | namespace oopse {
157              bool isDiagonal() const {
158                  for (unsigned int i = 0; i < Dim ; i++)
159                      for (unsigned int j = 0; j < Dim; j++)
160 <                        if (i !=j && fabs(data_[i][j]) > oopse::epsilon)
160 >                        if (i !=j && fabs(this->data_[i][j]) > oopse::epsilon)
161                              return false;
162                          
163                  return true;
# Line 169 | Line 169 | namespace oopse {
169                      return false;
170                  
171                  for (unsigned int i = 0; i < Dim ; i++)
172 <                    if (fabs(data_[i][i] - 1) > oopse::epsilon)
172 >                    if (fabs(this->data_[i][i] - 1) > oopse::epsilon)
173                          return false;
174                      
175                  return true;
# Line 181 | Line 181 | namespace oopse {
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];
184 >                        result(j, i) = this->data_[i][j];
185  
186                  return result;
187              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines