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

◆ new_ring_pair()

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

Definition at line 149 of file gb-homog2.cpp.

150{
151 s_pair *result = new s_pair;
152 result->next = nullptr;
153 result->syz_type = SPAIR_RING;
154 result->degree = weightInfo_->monomial_weight(
155 lcm, p->f->comp); //_M->primary_degree(lcm) +
156 //_F->primary_degree(p->f->comp-1);
157 result->compare_num = 0;
158 result->first = p;
159 result->second = nullptr;
160 result->f = nullptr;
161 result->fsyz = nullptr;
162
163 result->lcm = _M->make_new(lcm);
164 return result;
165}
const Monoid * _M
Definition gb-homog2.hpp:70
const GBWeight * weightInfo_
Definition gb-homog2.hpp:69
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().