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

◆ vec_text_out()

void Ring::vec_text_out ( buffer & o,
const vecterm * v,
bool p_one = true,
bool p_plus = false,
bool p_parens = false ) const

Definition at line 333 of file ring-vecs.cpp.

338{
339 if (v == nullptr)
340 {
341 o << "0";
342 return;
343 }
344
345 p_one = false;
346 for (const vecterm *t = v; t != nullptr; t = t->next)
347 {
348 this->elem_text_out(o, t->coeff, p_one, p_plus, p_parens);
349 o << "<" << t->comp << ">";
350 p_plus = true;
351 }
352}
virtual void elem_text_out(buffer &o, const ring_elem f, bool p_one=true, bool p_plus=false, bool p_parens=false) const =0

References elem_text_out(), and vec::next.

Referenced by dvec().