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

◆ strip()

resterm * res_poly::strip ( const resterm * f) const

Definition at line 299 of file res-a1-poly.cpp.

300{
301 resterm head;
302 resterm *result = &head;
303 for (const resterm *tm = f; tm != nullptr; tm = tm->next)
304 if (tm->comp->syz_type != SYZ_NOT_MINIMAL)
305 {
306 result->next = new_term();
307 result = result->next;
308 result->comp = tm->comp;
309 result->coeff = K->copy(tm->coeff);
310 M->copy(tm->monom, result->monom);
311 }
312 result->next = nullptr;
313 return head.next;
314}
const Ring * K
resterm * new_term() const
const Monoid * M
VALGRIND_MAKE_MEM_DEFINED & result(result)
@ SYZ_NOT_MINIMAL
resterm * next

References K, M, new_term(), resterm::next, result(), and SYZ_NOT_MINIMAL.