Changeset 1412 in Sophya for trunk/SophyaLib/TArray/tmatrix.cc


Ignore:
Timestamp:
Feb 20, 2001, 7:29:18 PM (25 years ago)
Author:
ansari
Message:

Modifs sur TMatrix::Transpose() et ajout methode SetSize comme alias de ReSize ds TMatrix et TVector - Reza 20/2/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/tmatrix.cc

    r1156 r1412  
    1 // $Id: tmatrix.cc,v 1.16 2000-08-29 16:10:30 ansari Exp $
     1// $Id: tmatrix.cc,v 1.17 2001-02-20 18:29:17 ansari Exp $
    22//                         C.Magneville          04/99
    33#include "machdefs.h"
     
    244244////////////////////////////////////////////////////////////////
    245245// 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
     247template <class T>
     248TMatrix<T>& TMatrix<T>::TransposeSelf()
    249249{
    250250  short vt = (marowi_ == veceli_) ? ColumnVector : RowVector;
     
    257257
    258258
    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 */
     264template <class T>
     265TMatrix<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
    260273/*!
    261274  \param mm : define the memory mapping type
     
    275288}
    276289
    277 //! Rearrange data in memory memoire according to \b mm
     290//! Rearrange data in memory according to \b mm
    278291/*!
    279292  \param mm : define the memory mapping type
Note: See TracChangeset for help on using the changeset viewer.