Ignore:
Timestamp:
Feb 19, 2013, 6:27:58 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
87343b4d7f38df9831596b5fcc7ded4fcff5f407
Parents:
644b311072b1277f612b8e3d8ad80e23a56d5ec0
git-author:
Martin Lee <martinlee84@web.de>2013-02-19 18:27:58+01:00
git-committer:
Martin Lee <martinlee84@web.de>2013-02-20 22:34:19+01:00
Message:
chg: towards correct imap
File:
1 edited

Legend:

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

    r644b31 r628f663  
    921921#endif
    922922
    923 number naCopyExt(number a, const coeffs src, const coeffs)
     923number naCopyExt(number a, const coeffs src, const coeffs dst)
    924924{
    925925  fraction fa=(fraction)a;
    926   return (number)p_Copy(NUM(fa),src->extRing);
     926  poly p = p_Copy(NUM(fa),src->extRing);
     927  assume( rSamePolyRep(src->extRing, dst->extRing) );
     928  definiteReduce(p, dst->extRing->qideal->m[0], dst);
     929  return (number)p;
    927930}
    928931
     
    995998  if (nCoeff_is_Q(bSrc) && nCoeff_is_Q(bDst))
    996999  {
    997     if (strcmp(rRingVar(0, src->extRing),
    998                rRingVar(0, dst->extRing)) == 0)
     1000    if (rSamePolyRep(src->extRing, dst->extRing) && (strcmp(rRingVar(0, src->extRing), rRingVar(0, dst->extRing)) == 0))
    9991001    {
    10001002      if (src->type==n_algExt)
     
    10091011  if (nCoeff_is_Zp(bSrc) && nCoeff_is_Zp(bDst))
    10101012  {
    1011     if (strcmp(rRingVar(0,src->extRing),rRingVar(0,dst->extRing))==0)
     1013    if (rSamePolyRep(src->extRing, dst->extRing) && (strcmp(rRingVar(0,src->extRing),rRingVar(0,dst->extRing))==0))
    10121014    {
    10131015      if (src->type==n_algExt)
Note: See TracChangeset for help on using the changeset viewer.