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

Function addLObject

kernel/GBEngine/sca.cc:23–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21void nc_gr_initBba(ideal F, kStrategy strat); // from gr_kstd2.cc!
22
23void addLObject(LObject& h, kStrategy& strat)
24{
25 if(h.IsNull()) return;
26
27 strat->initEcart(&h);
28 h.sev=0; // pGetShortExpVector(h.p);
29
30 // add h into S and L
31 int pos=posInS(strat, strat->sl, h.p, h.ecart);
32
33 if ( (pos <= strat->sl) && (p_ComparePolys(h.p, strat->S[pos], currRing)) )
34 {
35 if (TEST_OPT_PROT)
36 PrintS("d\n");
37 }
38 else
39 {
40 if (TEST_OPT_INTSTRATEGY)
41 {
42 p_Cleardenom(h.p, currRing);
43 }
44 else
45 {
46 pNorm(h.p);
47 }
48
49 if ((strat->syzComp==0)||(!strat->homog))
50 {
51 h.p = redtailBba(h.p,pos-1,strat);
52
53 if (TEST_OPT_INTSTRATEGY)
54 {
55 p_Cleardenom(h.p,currRing);
56 }
57 else
58 {
59 pNorm(h.p);
60 }
61 }
62
63 if(h.IsNull()) return;
64
65 // statistic
66 if (TEST_OPT_PROT)
67 {
68 PrintS("s\n");
69 }
70
71#ifdef KDEBUG
72 if (TEST_OPT_DEBUG)
73 {
74 PrintS("new s:");
75 wrp(h.p);
76 PrintLn();
77 }
78#endif
79
80 enterpairs(h.p, strat->sl, h.ecart, 0, strat);

Callers 1

k_sca_gr_bbaFunction · 0.85

Calls 11

posInSFunction · 0.85
p_ComparePolysFunction · 0.85
PrintSFunction · 0.85
p_CleardenomFunction · 0.85
pNormFunction · 0.85
wrpFunction · 0.85
enterpairsFunction · 0.85
kDeleteLcmFunction · 0.85
IsNullMethod · 0.80
redtailBbaFunction · 0.70
PrintLnFunction · 0.50

Tested by

no test coverage detected