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

◆ new_res_pair() [2/4]

res_pair * res_comp::new_res_pair ( int i)
private

Definition at line 243 of file res-a1.cpp.

244{
245 res_pair *p = new_res_pair(); // Fills in almost all fields
246 p->syz_type = SYZ_GEN;
247 p->me = component_number++;
248 p->compare_num = i;
249 p->syz = R->from_vector(base_components, (*generator_matrix)[i]);
250 p->base_monom = M->make_new(p->syz->monom);
251 p->base_comp = p->syz->comp;
252 p->first = p->base_comp;
253 p->mi = new MonomialIdeal(P, mi_stash);
254
255 return p;
256}
int component_number
Definition res-a1.hpp:108
const Monoid * M
Definition res-a1.hpp:80
const Matrix * generator_matrix
Definition res-a1.hpp:82
stash * mi_stash
Definition res-a1.hpp:85
res_poly * R
Definition res-a1.hpp:79
res_pair * new_res_pair()
Definition res-a1.cpp:210
const PolynomialRing * P
Definition res-a1.hpp:78
int p
@ SYZ_GEN

References component_number, generator_matrix, M, mi_stash, new_res_pair(), P, p, R, and SYZ_GEN.