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

◆ new_s_pair()

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

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

168{
169 // p and q should have 'f' field defined.
170 s_pair *result = new s_pair;
171 result->next = nullptr;
172 result->syz_type = SPAIR_PAIR;
173 result->degree = weightInfo_->monomial_weight(
174 lcm, p->f->comp); //_M->primary_degree(lcm) +
175 //_F->primary_degree(p->f->comp-1);
176 result->compare_num = 0;
177 result->first = p;
178 result->second = q;
179 result->f = nullptr;
180 result->fsyz = nullptr;
181
182 result->lcm = _M->make_new(lcm);
183 return result;
184}
const Monoid * _M
Definition gb-homog2.hpp:70
const GBWeight * weightInfo_
Definition gb-homog2.hpp:69
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().