Changeset 1412 in Sophya for trunk/SophyaLib/TArray/tmatrix.cc
- Timestamp:
- Feb 20, 2001, 7:29:18 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/tmatrix.cc
r1156 r1412 1 // $Id: tmatrix.cc,v 1.1 6 2000-08-29 16:10:30ansari Exp $1 // $Id: tmatrix.cc,v 1.17 2001-02-20 18:29:17 ansari Exp $ 2 2 // C.Magneville 04/99 3 3 #include "machdefs.h" … … 244 244 //////////////////////////////////////////////////////////////// 245 245 // Transposition 246 //! Transpose matrix in place 247 template <class T> 248 TMatrix<T>& TMatrix<T>::Transpose ()246 //! Transpose matrix in place, by changing the memory mapping 247 template <class T> 248 TMatrix<T>& TMatrix<T>::TransposeSelf() 249 249 { 250 250 short vt = (marowi_ == veceli_) ? ColumnVector : RowVector; … … 257 257 258 258 259 //! Transpose matrix into new matrix 259 //! Returns the transpose of the original matrix. 260 /*! 261 The data is shared between the two matrices 262 \return return a new matrix 263 */ 264 template <class T> 265 TMatrix<T> TMatrix<T>::Transpose() 266 { 267 TMatrix<T> tm(*this); 268 tm.TransposeSelf(); 269 return tm; 270 } 271 272 //! Returns a new matrix, corresponding to the transpose of the original matrix 260 273 /*! 261 274 \param mm : define the memory mapping type … … 275 288 } 276 289 277 //! Rearrange data in memory memoireaccording to \b mm290 //! Rearrange data in memory according to \b mm 278 291 /*! 279 292 \param mm : define the memory mapping type
Note:
See TracChangeset
for help on using the changeset viewer.