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

◆ new_s_pair()

s_pair * gb2_comp::new_s_pair ( gb_elem * p,
gb_elem * q,
const int * lcm )
private

Definition at line 134 of file res-a2-gb.cpp.

135{
136 // p and q should have 'f' field defined.
137 s_pair *result = new s_pair;
138 result->next = nullptr;
139 result->syz_type = SPAIR_PAIR;
140 result->degree = M->primary_degree(lcm) + F->primary_degree(p->f->comp - 1);
141 result->compare_num = 0;
142 result->first = p;
143 result->second = q;
144 result->f = nullptr;
145 result->fsyz = nullptr;
146
147 result->lcm = M->make_new(lcm);
148 return result;
149}
FreeModule * F
Definition res-a2.hpp:120
const Monoid * M
Definition res-a2.hpp:115
const int SPAIR_PAIR
Definition comp-gb.hpp:56
int p
VALGRIND_MAKE_MEM_DEFINED & result(result)
gbvector * f
Definition spair.hpp:58

References F, M, p, result(), and SPAIR_PAIR.

Referenced by find_pairs().