Implements GBRing.
Definition at line 98 of file gbring.cpp.
103{
104 (void) F;
105
106 gbvector head;
107 gbvector *inresult = &head;
108 int monlen =
M->monomial_size();
109
110 for (
const gbvector *
s = f;
s !=
nullptr;
s =
s->next)
111 {
114 t->
comp =
s->comp + comp;
115 t->
coeff =
K->mult(u,
s->coeff);
118 inresult = inresult->
next;
119 }
120 inresult->
next =
nullptr;
122}
static void mult(int nvars, ConstExponents a, ConstExponents b, Exponents result)
gbvector * new_raw_term()
References gbvector::coeff, gbvector::comp, GBRing::K, GBRing::M, gbvector::monom, ExponentVector< int, true >::mult(), GBRing::new_raw_term(), gbvector::next, and s.