Changeset 2752 in Sophya for trunk/SophyaLib/TArray/tvector.cc


Ignore:
Timestamp:
May 23, 2005, 6:18:17 PM (20 years ago)
Author:
ansari
Message:

1/ Suppression du constructeur de copie avec specification d'organisation memoire (MemoryMapping) pour TMatrix<T> et TVector<T>
2/ Amelioration de l'impression des TArray/TMatrix avec la specification setw(largeur)
3/ Correction petit bug dans la lecture fichiers ASCII argument non transmis ds utilarr.cc

Reza 23 Mai 2005

File:
1 edited

Legend:

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

    r2719 r2752  
    1 // $Id: tvector.cc,v 1.18 2005-05-13 16:44:30 cmv Exp $
     1// $Id: tvector.cc,v 1.19 2005-05-23 16:18:17 ansari Exp $
    22//                         C.Magneville          04/99
    33#include "sopnamsp.h"
     
    9191}
    9292
    93 //! Constructor from a TArray
    94 template <class T>
    95 TVector<T>::TVector(const TArray<T>& a)
    96 : TMatrix<T>(a)
    97 {
    98   if ( (size_[0] != 1) && (size_[1] != 1) )
    99     throw SzMismatchError("TVector<T>::TVector(const TArray<T>& a) NRows()!=1 && NCols()!=1 ");
    100   arrtype_ = 2;   // Type = Vector
    101 }
    10293
    10394//! Constructor of a vector from a TArray \b a
     
    10596  \param a : TArray to be copied or shared
    10697  \param share : if true, share data. If false copy data
    107   \param mm : define the memory mapping type
    10898  \param lcv : line or column vector ?
    10999  \sa SelectVectorType
    110100 */
    111101template <class T>
    112 TVector<T>::TVector(const TArray<T>& a, bool share, short lcv, short mm)
    113 : TMatrix<T>(a, share, mm)
     102TVector<T>::TVector(const TArray<T>& a, bool share, short lcv)
     103: TMatrix<T>(a, share)
    114104{
    115105  if ( (size_[0] != 1) && (size_[1] != 1) )
     
    202192  else cr = relt;
    203193  TMatrix<T> const & mtx = (*this);
    204   TVector sv( mtx(rr, cr) , true, GetVectorType(), GetMemoryMapping() );
     194  TVector sv( mtx(rr, cr) , true, GetVectorType() );
    205195  return(sv); 
    206196}
Note: See TracChangeset for help on using the changeset viewer.