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

◆ new_ring_pair()

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

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

165{
166 s_pair *result = new s_pair;
167 result->next = nullptr;
168 result->syz_type = SPAIR_RING;
169 result->degree = weightInfo_->monomial_weight(
170 lcm,
171 p->f->comp); // M->primary_degree(lcm) + F->primary_degree(p->f->comp-1);
172 result->compare_num = 0;
173 result->first = p;
174 result->second = nullptr;
175 result->f = nullptr;
176 result->fsyz = nullptr;
177
178 result->lcm = M->make_new(lcm);
179 return result;
180}
GBWeight * weightInfo_
const Monoid * M
const int SPAIR_RING
Definition comp-gb.hpp:57
int p
VALGRIND_MAKE_MEM_DEFINED & result(result)

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

Referenced by find_pairs(), and new_var_pair().