Changeset 9d68fd in git for libpolys/polys
- Timestamp:
- Feb 25, 2013, 3:35:27 PM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 1c94e44b6b2645f28d5bc81b7b3facc71b2b582d
- Parents:
- 27c79fcbc083eb57ec1345d22a6892cf162f017b
- Location:
- libpolys/polys
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/transext.cc
r27c79f r9d68fd 278 278 { 279 279 ntTest(a); 280 if (IS0(a)) return NULL; 281 280 282 definiteGcdCancellation(a, cf, FALSE); 281 282 if (IS0(a)) return NULL;283 283 284 284 fraction f = (fraction)a; … … 1488 1488 assume(src == dst->extRing->cf); 1489 1489 if ((SR_HDL(a) & SR_INT) || (a->s==3)) 1490 return ntInit(p_NSet(n_Copy(a, src), dst->extRing), dst); 1490 { 1491 number res=ntInit(p_NSet(n_Copy(a, src), dst->extRing), dst); 1492 n_Test(res,dst); 1493 return res; 1494 } 1491 1495 number nn=nlGetDenom(a,src); 1492 1496 number zz=nlGetNumerator(a,src); 1493 1497 number res=ntInit(p_NSet(zz,dst->extRing), dst); 1494 1498 fraction ff=(fraction)res; 1495 DEN(ff)=p_NSet(nn,dst->extRing); 1499 if (n_IsOne(nn,src)) DEN(ff)=NULL; 1500 else DEN(ff)=p_NSet(nn,dst->extRing); 1501 n_Test((number)ff,dst); 1496 1502 return (number)ff; 1497 1503 } … … 1746 1752 1747 1753 poly p = p_One(R); p_SetExp(p, iParameter, 1, R); p_Setm(p, R); 1748 1749 // return (number) p; 1754 p_Test(p,R); 1750 1755 1751 1756 fraction f = (fraction)omAlloc0Bin(fractionObjectBin); -
libpolys/polys/monomials/maps.cc
r27c79f r9d68fd 87 87 nMapFunc nMap, const ring dst_r) 88 88 { 89 p_Test(p,preimage_r); 89 90 poly q=p_NSet(nMap(pGetCoeff(p),preimage_r->cf,dst_r->cf),dst_r); 90 91 -
libpolys/polys/pDebug.cc
r27c79f r9d68fd 248 248 _pPolyAssumeReturnMsg(p->coef != NULL || (n_GetChar(r->cf) >= 2), "NULL coef",p,r); 249 249 #ifdef LDEBUG 250 r->cf->cfDBTest(p->coef,__FILE__,__LINE__,r->cf);250 _pPolyAssumeReturnMsg(r->cf->cfDBTest(p->coef,__FILE__,__LINE__,r->cf),"coeff err",p,r); 251 251 #endif 252 252 _pPolyAssumeReturnMsg(!n_IsZero(p->coef, r->cf), "Zero coef",p,r);
Note: See TracChangeset
for help on using the changeset viewer.