MCPcopy Create free account
hub / github.com/Singular/Singular / kInterRedCC

Function kInterRedCC

Singular/walk.cc:269–355  ·  view source on GitHub ↗

*interreduce F * *****************/

Source from the content-addressed store, hash-verified

267 *interreduce F *
268 *****************/
269static ideal kInterRedCC(ideal F, ideal Q)
270{
271 int j;
272 kStrategy strat = new skStrategy;
273/*
274 if (TEST_OPT_PROT)
275 {
276 writeTime("start InterRed:");
277 mflush();
278 }
279 strat->syzComp = 0;
280*/
281 strat->kAllAxis = (currRing->ppNoether) != NULL;
282 strat->kNoether=pCopy((currRing->ppNoether));
283 strat->ak = id_RankFreeModule(F, currRing);
284 initBuchMoraCrit(strat);
285 strat->NotUsedAxis = (BOOLEAN *)omAlloc((currRing->N+1)*sizeof(BOOLEAN));
286 for(j=currRing->N; j>0; j--)
287 {
288 strat->NotUsedAxis[j] = TRUE;
289 }
290 strat->enterS = enterSBba;
291 strat->posInT = posInT0;
292 strat->initEcart = initEcartNormal;
293 strat->sl = -1;
294 strat->tl = -1;
295 strat->tmax = setmaxT;
296 strat->T = initT();
297 strat->R = initR();
298 strat->sevT = initsevT();
299 if(rHasLocalOrMixedOrdering(currRing))
300 {
301 strat->honey = TRUE;
302 }
303
304 //initSCC(F,Q,strat);
305 initS(F,Q,strat);
306
307 /*
308 timetmp=clock();//22.01.02
309 initSSpecialCC(F,Q,NULL,strat);
310 tininitS=tininitS+clock()-timetmp;//22.01.02
311 */
312 if(TEST_OPT_REDSB)
313 {
314 strat->noTailReduction=FALSE;
315 }
316 updateS(TRUE,strat);
317
318 if(TEST_OPT_REDSB && TEST_OPT_INTSTRATEGY)
319 {
320 completeReduce(strat);
321 }
322 if(strat->kNoether!=NULL) pLmFree(&strat->kNoether);
323 omFreeSize((ADDRESS)strat->T,strat->tmax*sizeof(TObject));
324 omFreeSize((ADDRESS)strat->ecartS,IDELEMS(strat->Shdl)*sizeof(int));
325 omFreeSize((ADDRESS)strat->sevS,IDELEMS(strat->Shdl)*sizeof(unsigned long));
326 omFreeSize((ADDRESS)strat->NotUsedAxis,(currRing->N+1)*sizeof(BOOLEAN));

Callers 11

LastGBFunction · 0.85
Rec_LastGBFunction · 0.85
MAltwalk2Function · 0.85
REC_GB_MwalkFunction · 0.85
MwalkAltFunction · 0.85
MpwalkFunction · 0.85
MprwalkFunction · 0.85
TranMImprovwalkFunction · 0.85
walk.ccFile · 0.85
Mpwalk_MAltwalk1Function · 0.85
MAltwalk1Function · 0.85

Calls 11

initBuchMoraCritFunction · 0.85
initTFunction · 0.85
initRFunction · 0.85
initsevTFunction · 0.85
rHasLocalOrMixedOrderingFunction · 0.85
initSFunction · 0.85
updateSFunction · 0.85
completeReduceFunction · 0.85
pLmFreeFunction · 0.85
idSkipZeroesFunction · 0.85
id_RankFreeModuleFunction · 0.50

Tested by

no test coverage detected