| # | 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); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |