Changeset 1867 in Sophya for trunk/Eval
- Timestamp:
- Jan 18, 2002, 11:31:18 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Eval/COS/vecmapstl.cc
r1866 r1867 36 36 inline operator double() const { return(dv); } 37 37 inline operator complex<float>() const { return(complex<float>((float)dv, (float)dv_im)); } 38 inline operator complex<double>() const { return(complex<float>(dv, dv_im)); } 39 38 inline operator complex<double>() const { return(complex<double>(dv, dv_im)); } 39 inline complex<float> ToComplexF() const { return(complex<float>((float)dv, (float)dv_im)); } 40 inline complex<double> ToComplexD() const { return(complex<double>(dv, dv_im)); } 40 41 double dv; 41 42 double dv_im; /* for holding imaginary part of a complex */ … … 75 76 complex<float> za; 76 77 complex<double> zb,zc; 77 za = czr1 ; zb = czr1; zc = czr2;78 za = czr1.ToComplexF(); zb = czr1.ToComplexD(); zc = czr2.ToComplexD(); 78 79 cout << " GNUG_Version: __GNUC__ = " << __GNUC__ << endl; 79 80 cout << " convCR: za=(zb)=czr1" << za << " zc=" << zc
Note:
See TracChangeset
for help on using the changeset viewer.