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

Function khCheckLocInhom

kernel/GBEngine/khstd.cc:244–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242#endif
243
244void khCheckLocInhom(ideal Q, intvec *w, intvec *hilb, int &count,
245 kStrategy strat)
246
247/*
248This will be used for the local orderings in the case of the inhomogeneous ideals.
249Assume f1,...,fs are already in the standard basis. Test if hilb(LM(f1),...,LM(fs),1)
250is equal to the inputted one.
251If no, do nothing.
252If Yes, we know that all polys that we need are already in the standard basis
253so delete all the remaining pairs
254*/
255{
256 ideal Lm;
257 intvec *newhilb;
258
259 Lm = id_Head(strat->Shdl,currRing);
260
261 newhilb =hFirstSeries(Lm,w,Q,strat->kHomW);
262
263 if(newhilb->compare(hilb) == 0)
264 {
265 while (strat->Ll>=0)
266 {
267 count++;
268 if(TEST_OPT_PROT)
269 {
270 PrintS("h");
271 mflush();
272 }
273 deleteInL(strat->L,&strat->Ll,strat->Ll,strat);
274 }
275 delete newhilb;
276 return;
277 }
278 id_Delete(&Lm,currRing);
279}

Callers 1

moraFunction · 0.85

Calls 6

id_HeadFunction · 0.85
hFirstSeriesFunction · 0.85
PrintSFunction · 0.85
deleteInLFunction · 0.85
id_DeleteFunction · 0.85
compareMethod · 0.45

Tested by

no test coverage detected