| 286 | |
| 287 | template<class Form, class Cmpt, Foam::direction Mrows, Foam::direction Ncols> |
| 288 | inline typename Foam::typeOfTranspose<Cmpt, Form>::type |
| 289 | Foam::MatrixSpace<Form, Cmpt, Mrows, Ncols>::T() const |
| 290 | { |
| 291 | typename typeOfTranspose<Cmpt, Form>::type result; |
| 292 | |
| 293 | for (direction i=0; i<Mrows; ++i) |
| 294 | { |
| 295 | for (direction j=0; j<Ncols; ++j) |
| 296 | { |
| 297 | result(j,i) = operator()(i, j); |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | return result; |
| 302 | } |
| 303 | |
| 304 | |
| 305 | template<class Form, class Cmpt, Foam::direction Mrows, Foam::direction Ncols> |