Changeset 87343b in git for libpolys/polys/ext_fields


Ignore:
Timestamp:
Feb 20, 2013, 10:28:04 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
0723d52f38b257cac43d6e4c57aa7a5d243f5002
Parents:
628f663dc4f87ee80a30f2fabcac34fba9b2b144
git-author:
Martin Lee <martinlee84@web.de>2013-02-20 22:28:04+01:00
git-committer:
Martin Lee <martinlee84@web.de>2013-02-21 10:18:19+01:00
Message:
fixed fetch/imap so far
still misses map from trans to alg extensions
File:
1 edited

Legend:

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

    r628f663 r87343b  
    921921#endif
    922922
    923 number naCopyExt(number a, const coeffs src, const coeffs dst)
    924 {
     923number naCopyTrans2AlgExt(number a, const coeffs src, const coeffs dst)
     924{
     925  assume (nCoeff_is_transExt (src));
     926  assume (nCoeff_is_algExt (dst));
    925927  fraction fa=(fraction)a;
     928  assume( rSamePolyRep(src->extRing, dst->extRing) );
    926929  poly p = p_Copy(NUM(fa),src->extRing);
    927   assume( rSamePolyRep(src->extRing, dst->extRing) );
    928930  definiteReduce(p, dst->extRing->qideal->m[0], dst);
     931  assume (p_Test (p, dst->extRing));
    929932  return (number)p;
    930933}
     
    10031006         return ndCopyMap; // naCopyMap;         /// Q(a)   --> Q(a)
    10041007      else
    1005          return naCopyExt;
     1008         return naCopyTrans2AlgExt;
    10061009    }
    10071010    else
     
    10161019        return ndCopyMap; // naCopyMap;          /// Z/p(a) --> Z/p(a)
    10171020      else
    1018          return naCopyExt;
     1021         return naCopyTrans2AlgExt;
    10191022    }
    10201023    else
Note: See TracChangeset for help on using the changeset viewer.