Changeset 47ab5b in git for libpolys/coeffs/gnumpc.cc


Ignore:
Timestamp:
Feb 8, 2012, 6:48:08 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
e5fc00c615e47e7757b8c95660e3a8ac06ffdef0
Parents:
237b4dda7a8a6ccfcc5966b92c779cebeebc30cc
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-08 18:48:08+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-08 22:31:58+01:00
Message:
fixing real (GMP) complex numbers (n_long_C)

fix: this domain also have a parameter!
fix: ngcCoeffIsEqual didn't compare parameter name

TODO (general): move Decompose & Compose, rParameter & rPar into coeffs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/gnumpc.cc

    r237b4dd r47ab5b  
    377377BOOLEAN ngcCoeffIsEqual (const coeffs r, n_coeffType n, void * parameter)
    378378{
    379   if (n==ID) {
     379  if (n==ID)
     380  {
    380381    LongComplexInfo* p = (LongComplexInfo *)(parameter);
    381     if (p->float_len == r->float_len && p->float_len2 == r->float_len2 &&
    382                     strcmp(p->par_name, r->complex_parameter))
    383       return TRUE;
    384   }
    385   return FALSE;
     382   
     383    if (
     384        (p->float_len == r->float_len) &&
     385        (p->float_len2 == r->float_len2)
     386       )
     387      if (strcmp(p->par_name, r->complex_parameter) == 0)
     388        return (TRUE);
     389  }
     390  return (FALSE);
    386391}
    387392
Note: See TracChangeset for help on using the changeset viewer.