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

◆ elem_text_out() [1/2]

void res2_poly::elem_text_out ( buffer & o,
const res2term * f ) const

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

255{
256 if (f == nullptr)
257 {
258 o << "0";
259 return;
260 }
261
262 bool p_one = false;
263 bool p_parens = true;
264 bool p_plus = false;
265 for (const res2term *t = f; t != nullptr; t = t->next)
266 {
267 int isone = M->is_one(t->monom);
268 K->elem_text_out(o, t->coeff, p_one, p_plus, p_parens);
269 if (!isone) M->elem_text_out(o, t->monom, p_one);
270 o << "<" << t->comp->me << ">";
271 p_plus = true;
272 }
273}
const Monoid * M
const Ring * K

References K, M, and res2term::next.

Referenced by drespoly2(), and elem_text_out().