- Timestamp:
- Mar 13, 2017, 4:42:06 PM (7 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- af6ec6b981b52226441c782e44735843c61cfb5b
- Parents:
- a0707f8848846bae0b35b9436d54d36e5f3ccd43
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2017-03-13 16:42:06+01:00
- git-committer:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2017-03-13 16:44:45+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kutil.cc
ra0707f8 r17c315 1322 1322 #endif 1323 1323 /*- computes the lcm(s[i],p) -*/ 1324 h.lcm = p Init();1324 h.lcm = p_Lcm(p,strat->S[i],currRing); 1325 1325 pSetCoeff0(h.lcm, n_Lcm(pGetCoeff(p), pGetCoeff(strat->S[i]), currRing->cf)); 1326 1326 if (nIsZero(pGetCoeff(h.lcm))) … … 1331 1331 } 1332 1332 // basic chain criterion 1333 pLcm(p,strat->S[i],h.lcm); 1334 pSetm(h.lcm); 1335 /* 1333 /* 1336 1334 *the set B collects the pairs of type (S[j],p) 1337 1335 *suppose (r,p) is in B and (s,p) is the new pair and lcm(s,p) != lcm(r,p) … … 1970 1968 #elif defined(HAVE_RATGRING) 1971 1969 if (rIsRatGRing(currRing)) 1972 pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift1970 pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift 1973 1971 else 1974 pLcm(p,strat->S[i],Lp.lcm);1972 pLcm(p,strat->S[i],Lp.lcm); 1975 1973 #endif 1976 1974 pSetm(Lp.lcm); … … 2238 2236 assume(i<=strat->sl); 2239 2237 2238 if ((strat->S[i]==NULL) || (p==NULL)) 2239 return; 2240 2240 2241 int l,j,compare; 2241 2242 LObject Lp; … … 2246 2247 #endif 2247 2248 /*- computes the lcm(s[i],p) -*/ 2248 Lp.lcm = pInit(); 2249 2250 pLcm(p,strat->S[i],Lp.lcm); 2251 pSetm(Lp.lcm); 2249 Lp.lcm = p_Lcm(p,strat->S[i],currRing); 2252 2250 2253 2251 if (strat->sugarCrit) … … 2377 2375 pNorm(p); 2378 2376 2379 if ((strat->S[i]==NULL) || (p==NULL))2380 return;2381 2382 2377 if ((strat->fromQ!=NULL) && (isFromQ!=0) && (strat->fromQ[i]!=0)) 2383 2378 Lp.p=NULL; … … 2466 2461 pLcm(p,strat->S[i],Lp.lcm); 2467 2462 #elif defined(HAVE_RATGRING) 2468 // if (rIsRatGRing(currRing)) 2469 pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift 2463 if (rIsRatGRing(currRing)) 2464 pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift 2465 else 2466 pLcm(p,strat->S[i],Lp.lcm); 2470 2467 #endif 2471 2468 pSetm(Lp.lcm); … … 2742 2739 pLcm(p,strat->S[i],Lp.lcm); 2743 2740 #elif defined(HAVE_RATGRING) 2744 // if (rIsRatGRing(currRing)) 2745 pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift 2741 if (rIsRatGRing(currRing)) 2742 pLcmRat(p,strat->S[i],Lp.lcm, currRing->real_var_start); // int rat_shift 2743 else 2744 pLcm(p,strat->S[i],Lp.lcm); 2746 2745 #endif 2747 2746 pSetm(Lp.lcm); … … 3156 3155 Lp.i_r = -1; 3157 3156 3158 Lp.lcm = pInit(); 3159 pLcm(p,strat->S[i],Lp.lcm); 3160 pSetm(Lp.lcm); 3157 Lp.lcm = p_Lcm(p,strat->S[i],currRing); 3161 3158 /*- compute the short s-polynomial -*/ 3162 3159 … … 4239 4236 #endif 4240 4237 /*- computes the lcm(s[i],p) -*/ 4241 Lp.lcm = pInit(); 4242 4243 pLcm(p,f,Lp.lcm); 4244 pSetm(Lp.lcm); 4238 Lp.lcm = p_Lcm(p,f,Lp.lcm,currRing); 4245 4239 pSetCoeff(Lp.lcm, nLcm(pGetCoeff(p), pGetCoeff(f), currRing)); 4246 4240 assume(!strat->sugarCrit); … … 12350 12344 #endif 12351 12345 /*- computes the lcm(s[i],p) -*/ 12352 Lp.lcm = pInit(); 12353 12354 pLcm(p,q, Lp.lcm); // q is what was strat->S[i], so a poly in LM/TR presentation 12355 pSetm(Lp.lcm); 12346 Lp.lcm = p_Lcm(p,q, currRing); // q is what was strat->S[i], so a poly in LM/TR presentation 12356 12347 12357 12348 /* apply the V criterion */
Note: See TracChangeset
for help on using the changeset viewer.