Changeset 3aae0e in git for coeffs/gnumpc.cc
- Timestamp:
- May 3, 2010, 8:40:12 PM (14 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 3de81d0751fbbbc4448d3fd2531c9a6166149a7c
- Parents:
- 8e0242295b4d15e0888fcf82a2aee88da415872f
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-05-03 20:40:12+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:50:25+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
coeffs/gnumpc.cc
r8e0242 r3aae0e 20 20 21 21 22 #include "shortfl.h" 23 24 22 25 #ifdef LDEBUG 23 26 // not yet implemented … … 34 37 #endif 35 38 36 const n_coeffType ID = n_long_C;39 static const n_coeffType ID = n_long_C; 37 40 38 41 number ngcMapQ(number from, const coeffs r, const coeffs aRing) … … 69 72 assume( getCoeffType(aRing) == n_R ); 70 73 71 union nf72 {73 float _f;74 number _n;75 nf(float f) {_f = f;}76 nf(number n) {_n = n;}77 float F() const {return _f;}78 number N() const {return _n;}79 };80 81 74 if ( from != NULL ) 82 75 { 83 gmp_complex *res=new gmp_complex((double)n f(from).F());76 gmp_complex *res=new gmp_complex((double)nrFloat(from)); 84 77 return (number)res; 85 78 }
Note: See TracChangeset
for help on using the changeset viewer.