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

◆ new_s_pair()

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

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

183{
184 // p and q should have 'f' field defined.
185 s_pair *result = new s_pair;
186 result->next = nullptr;
187 result->syz_type = SPAIR_PAIR;
188 result->degree = weightInfo_->monomial_weight(
189 lcm,
190 p->f->comp); // M->primary_degree(lcm) + F->primary_degree(p->f->comp-1);
191 result->compare_num = 0;
192 result->first = p;
193 result->second = q;
194 result->f = nullptr;
195 result->fsyz = nullptr;
196
197 result->lcm = M->make_new(lcm);
198 return result;
199}
GBWeight * weightInfo_
const Monoid * M
const int SPAIR_PAIR
Definition comp-gb.hpp:56
int p
VALGRIND_MAKE_MEM_DEFINED & result(result)
gbvector * f
Definition spair.hpp:58

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

Referenced by find_pairs().