Changeset de714a7 in git
- Timestamp:
- Sep 2, 2020, 11:13:41 AM (4 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d1aba562c8f27c78d855590201241d36c3bef972
- Parents:
- 40632978ce2cb84dae846b23a573eee15545abcc
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipassign.cc
r4063297 rde714a7 222 222 { 223 223 poly n=DEN((fraction)(p)); 224 if(!p_IsConstant (n,r->cf->extRing))224 if(!p_IsConstantPoly(n,r->cf->extRing)) 225 225 { 226 226 WarnS("denominator must be constant - ignoring it"); … … 343 343 { 344 344 poly n=DEN((fraction)(p)); 345 if(!p_IsConstant (n,currRing->cf->extRing))345 if(!p_IsConstantPoly(n,currRing->cf->extRing)) 346 346 { 347 347 WarnS("denominator must be constant - ignoring it"); -
kernel/polys.h
r4063297 rde714a7 244 244 245 245 /// return TRUE if all monomials of p are constant 246 #define pIsConstantPoly(p) p_IsConstant (p, currRing)246 #define pIsConstantPoly(p) p_IsConstantPoly(p, currRing) 247 247 248 248 #define pIsPurePower(p) p_IsPurePower(p, currRing) -
libpolys/polys/clapconv.cc
r4063297 rde714a7 325 325 326 326 // test if denominator is constant 327 if (!errorreported && !p_IsConstant (DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing))327 if (!errorreported && !p_IsConstantPoly(DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing)) 328 328 WerrorS("conversion error: denominator!= 1"); 329 329 … … 357 357 358 358 // test if denominator is constant 359 if (!p_IsConstant (DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing))359 if (!p_IsConstantPoly(DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing)) 360 360 return FALSE; 361 361 pIter(p); -
libpolys/polys/clapsing.cc
r4063297 rde714a7 826 826 p_Test(fac,r); 827 827 int e=0; 828 if (!p_IsConstant (fac,r))828 if (!p_IsConstantPoly(fac,r)) 829 829 { 830 830 #ifdef FACTORIZE2_DEBUG … … 1141 1141 prune (a); 1142 1142 #ifndef SING_NDEBUG 1143 if ((r->cf->extRing!=NULL) && (!p_IsConstant (ff,r)))1143 if ((r->cf->extRing!=NULL) && (!p_IsConstantPoly(ff,r))) 1144 1144 { 1145 1145 singclap_factorize_retry++; -
libpolys/polys/monomials/p_polys.h
r4063297 rde714a7 1983 1983 } 1984 1984 1985 #define p_IsConstantPoly(p,r) p_IsConstant(p,r) 1985 static inline BOOLEAN p_IsConstantPoly(const poly p, const ring r) 1986 { 1987 p_Test(p, r); 1988 poly pp=p; 1989 while(pp!=NULL) 1990 { 1991 if (! p_LmIsConstantComp(pp, r)) 1992 return FALSE; 1993 pIter(pp); 1994 } 1995 return TRUE; 1996 } 1986 1997 1987 1998 static inline BOOLEAN p_IsUnit(const poly p, const ring r) -
libpolys/polys/nc/old.gring.cc
r4063297 rde714a7 3361 3361 3362 3362 int *perm=(int *)omAlloc0((Rop->N+1)*sizeof(int)); 3363 if (!p_IsConstant (p, Rop))3363 if (!p_IsConstantPoly(p, Rop)) 3364 3364 { 3365 3365 /* we know perm exactly */ -
libpolys/polys/simpleideals.cc
r4063297 rde714a7 404 404 for (int k = IDELEMS(id)-1; k>=0; k--) 405 405 { 406 if (!p_IsConstant (id->m[k],r))406 if (!p_IsConstantPoly(id->m[k],r)) 407 407 return FALSE; 408 408 }
Note: See TracChangeset
for help on using the changeset viewer.