Ignore:
Timestamp:
Mar 15, 2012, 7:43:06 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
Children:
da0565bb9765186b7c8bde819d2ea3522f22e26f
Parents:
90934a9f682716f4e6fe4afb6c7eb7b8f281b8bf
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-15 19:43:06+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-16 19:36:36+01:00
Message:
improved n[at]CoeffIsEqual

chg: they should test the *equality* of underlying rings,
e.g. in order to assure the coeffs of the following rings are the same:Q(P)[X],Q(P)[Y]
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    r90934a r4d94c97  
    953953     registered cf and perform reference counting rather than creating
    954954     multiple copies of the same coefficient field/domain/ring */
    955   return (ntRing == e->r);
     955  if (ntRing == e->r)
     956    return TRUE;
     957
     958  // NOTE: Q(a)[x] && Q(a)[y] should better share the _same_ Q(a)...
     959  if( rEqual(ntRing, e->r, TRUE) )
     960  {
     961    rDelete(e->r);
     962    return TRUE;
     963  }
     964
     965  return FALSE; 
    956966}
    957967
Note: See TracChangeset for help on using the changeset viewer.