Changeset 628f663 in git for libpolys/polys/ext_fields/algext.cc
- Timestamp:
- Feb 19, 2013, 6:27:58 PM (11 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/algext.cc
r644b31 r628f663 921 921 #endif 922 922 923 number naCopyExt(number a, const coeffs src, const coeffs )923 number naCopyExt(number a, const coeffs src, const coeffs dst) 924 924 { 925 925 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; 927 930 } 928 931 … … 995 998 if (nCoeff_is_Q(bSrc) && nCoeff_is_Q(bDst)) 996 999 { 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)) 999 1001 { 1000 1002 if (src->type==n_algExt) … … 1009 1011 if (nCoeff_is_Zp(bSrc) && nCoeff_is_Zp(bDst)) 1010 1012 { 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)) 1012 1014 { 1013 1015 if (src->type==n_algExt)
Note: See TracChangeset
for help on using the changeset viewer.