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


Ignore:
Timestamp:
Jul 27, 2000, 2:00:10 AM (25 years ago)
Author:
ansari
Message:

Suite operations entre matrices de <> MemOrg, Amelioration des Sequences - Reza 27/7/2000

File:
1 edited

Legend:

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

    r1099 r1103  
    1 // $Id: tvector.cc,v 1.9 2000-07-26 16:29:46 ansari Exp $
     1// $Id: tvector.cc,v 1.10 2000-07-27 00:00:10 ansari Exp $
    22//                         C.Magneville          04/99
    33#include "machdefs.h"
     
    101101template <class T>
    102102TVector<T>::TVector(const BaseArray& a)
    103 : TMatrix<T>()
    104 {
    105   arrtype_ = 2;   // Type = Vector
    106   SetBA(a);
     103: TMatrix<T>(a)
     104{
     105  if ( (size_[0] != 1) && (size_[1] != 1) )
     106    throw SzMismatchError("TVector<T>::TVector(const BaseArray& a) NRows()!=1 && NCols()!=1 ");
     107  arrtype_ = 2;   // Type = Vector
    107108}
    108109
Note: See TracChangeset for help on using the changeset viewer.