Changeset 1517 in Sophya for trunk/SophyaLib/TArray/tarray.cc


Ignore:
Timestamp:
Jun 12, 2001, 6:21:13 PM (24 years ago)
Author:
ansari
Message:

Rajout classe ComplexMathArray pour operations sur tableaux complexes (real(), imag() ,...) - Ajout fonctions TArray::ReadASCII() (pas encore implementee) et TArray::WriteASCII() - Reza 12/6/2001

File:
1 edited

Legend:

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

    r1393 r1517  
    131131  : BaseArray() , mNDBlock(a.mNDBlock, share)
    132132{
     133  if (a.NbDimensions() == 0)  return; 
    133134  string exmsg = "TArray<T>::TArray(const TArray<T>&, bool)";
    134135  if (!UpdateSizes(a, exmsg))  throw( ParmError(exmsg) );
     
    141142  : BaseArray() , mNDBlock()
    142143{
     144  if (a.NbDimensions() == 0)  return; 
    143145  string exmsg = "TArray<T>::TArray(const BaseArray&)";
    144146  if (!UpdateSizes(a, exmsg))  throw( ParmError(exmsg) );
     
    256258 */
    257259template <class T>
    258 void TArray<T>::ReSize(const TArray<T>& a)
     260void TArray<T>::ReSize(const BaseArray& a)
    259261{
    260262  if (arrtype_ != 0) {
     
    10311033}
    10321034
     1035//! Fill the array, decoding the ASCII input stream
     1036/*!
     1037  \param is : input stream (ASCII)
     1038 */
     1039template <class T>
     1040void TArray<T>::ReadASCII(istream& is)
     1041{
     1042  cerr << " TArray<T>::ReadASCII() - Pas encore implemente - Reza 12/6/2001 " << endl;
     1043}
     1044
     1045//! Writes the array content to the output stream, (in ASCII)
     1046/*!
     1047  \param os : output stream (ASCII)
     1048 */
     1049template <class T>
     1050void TArray<T>::WriteASCII(ostream& os) const
     1051{
     1052  Print(os, Size(), true);
     1053}
     1054
    10331055
    10341056
Note: See TracChangeset for help on using the changeset viewer.