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

◆ strip()

res2term * res2_poly::strip ( const res2term * f) const

Definition at line 317 of file res-a0-poly.cpp.

318{
319 res2term head;
320 res2term *result = &head;
321 for (const res2term *tm = f; tm != nullptr; tm = tm->next)
322 if (tm->comp->syz_type != SYZ2_NOT_MINIMAL)
323 {
324 result->next = new_term();
325 result = result->next;
326 result->comp = tm->comp;
327 result->coeff = K->copy(tm->coeff);
328 M->copy(tm->monom, result->monom);
329 }
330 result->next = nullptr;
331 return head.next;
332}
const Monoid * M
const Ring * K
res2term * new_term() const
VALGRIND_MAKE_MEM_DEFINED & result(result)
@ SYZ2_NOT_MINIMAL
res2term * next

References K, M, new_term(), res2term::next, result(), and SYZ2_NOT_MINIMAL.