Changeset 17bc740 in git for kernel/GBEngine/kutil.cc
- Timestamp:
- Feb 5, 2021, 6:59:30 PM (3 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- ff4cbacc83944accd7caea5f872dc17187736644
- Parents:
- 66805e9596322cdaf1ea898965d3b22dfc939b1d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kutil.cc
r66805e r17bc740 2000 2000 if (strat->sugarCrit && ALLOW_PROD_CRIT(strat)) 2001 2001 { 2002 if (strat->fromT && (strat->ecartS[i]>ecart)) 2003 { 2004 pLmFree(Lp.lcm); 2005 return; 2006 /*the pair is (s[i],t[.]), discard it if the ecart is too big*/ 2007 } 2002 2008 if((!((strat->ecartS[i]>0)&&(ecart>0))) 2003 2009 && pHasNotCF(p,strat->S[i])) … … 2021 2027 return; 2022 2028 } 2023 else 2024 Lp.ecart = si_max(ecart,strat->ecartS[i]); 2025 if (strat->fromT && (strat->ecartS[i]>ecart)) 2026 { 2027 pLmFree(Lp.lcm); 2028 return; 2029 /*the pair is (s[i],t[.]), discard it if the ecart is too big*/ 2030 } 2029 Lp.ecart = si_max(ecart,strat->ecartS[i]); 2031 2030 /* 2032 2031 *the set B collects the pairs of type (S[j],p) … … 2067 2066 if (ALLOW_PROD_CRIT(strat)) 2068 2067 { 2068 if (strat->fromT && (strat->ecartS[i]>ecart)) 2069 { 2070 pLmFree(Lp.lcm); 2071 return; 2072 /*the pair is (s[i],t[.]), discard it if the ecart is too big*/ 2073 } 2069 2074 // if currRing->nc_type!=quasi (or skew) 2070 2075 // TODO: enable productCrit for super commutative algebras... … … 2088 2093 return; 2089 2094 } 2090 if (strat->fromT && (strat->ecartS[i]>ecart))2091 {2092 pLmFree(Lp.lcm);2093 return;2094 /*the pair is (s[i],t[.]), discard it if the ecart is too big*/2095 }2096 2095 /* 2097 2096 *the set B collects the pairs of type (S[j],p) … … 2236 2235 } 2237 2236 2238 /// p_HasNotCF for the IDLIFT case : ignore component2239 static BOOLEAN p_HasNotCF_Lift(poly p1, poly p2, const ring r)2237 /// p_HasNotCF for the IDLIFT case and syzComp==1: ignore component 2238 static inline BOOLEAN p_HasNotCF_Lift(poly p1, poly p2, const ring r) 2240 2239 { 2241 2240 int i = rVar(r); … … 2252 2251 /*2 2253 2252 * put the pair (s[i],p) into the set B, ecart=ecart(p) for idLift(I,T) 2253 * (in the special case: idLift for ideals, i.e. strat->syzComp==1) 2254 * (prod.crit applies) 2254 2255 */ 2255 2256 … … 2259 2260 assume(!rIsPluralRing(currRing)); 2260 2261 assume(i<=strat->sl); 2262 assume(strat->syzComp==1); 2261 2263 2262 2264 if ((strat->S[i]==NULL) || (p==NULL)) … … 10013 10015 #endif 10014 10016 if (TEST_OPT_IDLIFT 10017 && (strat->syzComp==1) 10015 10018 && (!rIsPluralRing(currRing))) 10016 10019 strat->enterOnePair=enterOnePairLift;
Note: See TracChangeset
for help on using the changeset viewer.