Macaulay2 Engine
Loading...
Searching...
No Matches

◆ add_gens()

void GBinhom_comp::add_gens ( int lo,
int hi,
const Matrix * m )

Definition at line 86 of file gb-sugarless.cpp.

87{
88 // MES
89 // First incorporate the new generators.
90 // 2. inter-reduce them, so they have different lead terms
91 // 3. insert them into gb, gbLarge
92 // 4. each insertion will also call find_pairs.
93
94 // MES: should we inter-reduce these first? Does it matter?
95 for (int i = hi; i >= lo; i--)
96 {
97 ring_elem denom;
98 gbvector *f = originalR->translate_gbvector_from_vec(F, (*m)[i], denom);
99 s_pair *p = new_gen(i, f, denom);
100 if (p != nullptr) spairs->insert(p);
101 n_pairs++;
102 }
103}
const FreeModule * F
s_pair_heap * spairs
const PolynomialRing * originalR
s_pair * new_gen(int i, gbvector *f, ring_elem denom)
int p

References F, Matrix, n_pairs, new_gen(), originalR, p, and spairs.

Referenced by set_up().