Changeset 1866 in Sophya for trunk/Eval/COS/vecmapstl.cc


Ignore:
Timestamp:
Jan 18, 2002, 10:36:46 AM (24 years ago)
Author:
ansari
Message:

suite test sur classe complex ds vecmapstl.cc - Reza 18/01/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Eval/COS/vecmapstl.cc

    r1865 r1866  
    2424  inline convCR(float v) { dv = (double)v;  dv_im = 0.; } 
    2525  inline convCR(double v) { dv = v;  dv_im = 0.; } 
    26   inline convCR(complex<float> z) { dv = (double)z.real();  dv_im = (double)z.imag(); } 
    27   inline convCR(complex<double> z) { dv = z.real();  dv_im = z.imag(); }
     26  inline convCR(complex<float> const & z) { dv = (double)z.real();  dv_im = (double)z.imag(); } 
     27  inline convCR(complex<double> const & z) { dv = z.real();  dv_im = z.imag(); }
    2828  inline float  operator= (float v) { dv = (double)v;  dv_im = 0.; return v; }
    2929  inline double operator= (double v) { dv = v;  dv_im = 0.; return v; }
    30   inline complex<float>  operator= (complex<float> z)
     30  inline complex<float>  operator= (complex<float> const & z)
    3131   { dv = (double)z.real(); dv_im = (double)z.imag(); return z; }
    32   inline complex<double>  operator= (complex<double> z)
     32  inline complex<double>  operator= (complex<double> const & z)
    3333   { dv = z.real(); dv_im = z.imag(); return z; }
    3434
     
    7171         << " zd1+zd2=" << zd1+zd2 << endl;
    7272    convCR czr, czr1(z1), czr2(zd2), czr3;
    73 #if defined(__GNUG__) && (__GNUC__ < 3)
     73    /* if defined(__GNUG__) && (__GNUC__ < 3) */
     74#if defined(__GNUG__)
    7475    complex<float> za;
    7576    complex<double> zb,zc;
     
    7778    cout << " GNUG_Version: __GNUC__ = " << __GNUC__ << endl;
    7879    cout << " convCR: za=(zb)=czr1" << za << " zc=" << zc
    79         << " zb+zc=" << zb+zc << endl ;
     80    << " zb+zc=" << zb+zc << endl ;
    8081#else
    8182    cout << " convCR: czr1(z1)" << (complex<float>)czr1
Note: See TracChangeset for help on using the changeset viewer.