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

◆ new_res2_pair() [2/2]

res2_pair * res2_comp::new_res2_pair ( res2_pair * first,
res2_pair * second,
const int * basemon )
private

Definition at line 603 of file res-a0.cpp.

606{
607 res2_pair *p = new res2_pair;
608 p->next = nullptr;
609 p->me = next_component++;
610 p->pair_num = p->me;
611 p->syz_type = SYZ2_S_PAIR;
612 p->level = (unsigned char)(first->level + 1);
613 p->degree = (short unsigned int)(M->primary_degree(basemon) + first->degree -
614 M->primary_degree(first->syz->monom) - 1);
615 p->compare_num = 0; // Will be set after pairs are done
616 p->syz = R->new_term(K->from_long(1), basemon, first);
617#if 0
618// if (second != NULL)
619// p->syz->next = R->new_term(K->from_long(-1), basemon, second);
620#endif
621 p->mi = new MonomialIdeal(P, mi_stash);
622 p->pivot_term = nullptr;
623
624 return p;
625}
int next_component
Definition res-a0.hpp:163
stash * mi_stash
Definition res-a0.hpp:130
res2_poly * R
Definition res-a0.hpp:123
const Monoid * M
Definition res-a0.hpp:124
const PolynomialRing * P
Definition res-a0.hpp:122
const Ring * K
Definition res-a0.hpp:125
int p
@ SYZ2_S_PAIR
unsigned short degree
unsigned char level
res2term * syz
int monom[1]

References res2_pair::degree, K, res2_pair::level, M, mi_stash, res2term::monom, next_component, P, p, R, res2_pair::syz, and SYZ2_S_PAIR.