Changeset 9bb5457 in git for libpolys/coeffs/gnumpc.cc
- Timestamp:
- May 27, 2011, 2:56:51 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 2c7f28850c274452c6d4f324225864e2331412ed
- Parents:
- 7af488ec51790060979537b35a03fb345e053f90
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-27 14:56:51+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:39:06+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/gnumpc.cc
r7af488e r9bb5457 30 30 #ifdef LDEBUG 31 31 // not yet implemented 32 BOOLEAN ngcDBTest(number a, const char *f, const int l, const coeffs r)32 BOOLEAN ngcDBTest(number, const char *, const int, const coeffs r) 33 33 { 34 34 assume( getCoeffType(r) == ID ); … … 54 54 { 55 55 assume( getCoeffType(r) == ID ); 56 56 57 57 gmp_complex* n= new gmp_complex( (long)i, (long)0 ); 58 58 59 59 return (number)n; 60 60 } … … 66 66 { 67 67 assume( getCoeffType(r) == ID ); 68 68 69 69 return (int)((gmp_complex*)i)->real(); 70 70 } … … 105 105 { 106 106 assume( getCoeffType(r) == ID ); 107 107 108 108 gmp_complex* b= new gmp_complex( *(gmp_complex*)a ); 109 109 return (number)b; … … 170 170 { 171 171 assume( getCoeffType(R) == ID ); 172 172 173 173 gmp_complex* r= new gmp_complex( (*(gmp_complex*)a) * (*(gmp_complex*)b) ); 174 174 return (number)r; … … 414 414 415 415 416 417 /* 416 417 /* 418 418 //r->cfInitChar=nlInitChar; 419 419 r->cfKillChar=NULL; … … 484 484 else 485 485 n->complex_parameter = omStrDup( (char*) p ); 486 486 487 487 return FALSE; 488 488 } … … 553 553 554 554 if ( from != NULL ) 555 { 555 { 556 556 b = new gmp_complex( *(gmp_complex*)from ); 557 557 } 558 return (number)b; 558 return (number)b; 559 559 } 560 560
Note: See TracChangeset
for help on using the changeset viewer.