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

◆ load_gen()

void F4GB::load_gen ( int which)
private

Definition at line 196 of file f4.cpp.

197{
198 GBF4Polynomial &g = mGenerators[which]->f;
199
200 row_elem r{};
201 r.monom = nullptr; // This says that this element corresponds to a generator
202 r.elem = which;
203 r.len = g.len;
204 // r.comps = Mem->components.allocate(g.len);
205 r.comps = new int[g.len];
206 // r.coeffs is already initialized to [nullptr].
207
208 // TODO: this iterator requires knowledge about memory layout of monomials
209 monomial_word *w = g.monoms;
210 for (int i = 0; i < g.len; i++)
211 {
212 mMonomialInfo->copy(w, next_monom);
214 w += mMonomialInfo->monomial_size(w);
215 }
216
217 mat->rows.push_back(r);
218}
coefficient_matrix * mat
Definition f4.hpp:186
gb_array mGenerators
Definition f4.hpp:180
monomial_word * next_monom
Definition f4.hpp:189
int find_or_append_column(packed_monomial m)
Definition f4.cpp:165
const MonomialInfo * mMonomialInfo
Definition f4.hpp:157
long monomial_word
Definition moninfo.hpp:77
monomial_word * monoms
Definition f4-types.hpp:110
packed_monomial monom
Definition f4-types.hpp:157
int * comps
Definition f4-types.hpp:163

References row_elem::comps, row_elem::elem, find_or_append_column(), GBF4Polynomial::len, row_elem::len, mat, mGenerators, mMonomialInfo, row_elem::monom, GBF4Polynomial::monoms, and next_monom.

Referenced by process_s_pair().