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

◆ text_out()

void M2FreeAlgebra::text_out ( buffer & o) const
virtual

Implements Ring.

Definition at line 66 of file M2FreeAlgebra.cpp.

67{
69 o << "{";
70 for (int i = 0; i < monoid().variableNames().size(); i++)
71 {
72 if (i > 0) o << ",";
73 o << monoid().variableNames()[i];
74 }
75 o << "}";
76}
const std::vector< std::string > & variableNames() const
const Ring * coefficientRing() const
const FreeMonoid & monoid() const
virtual void text_out(buffer &o) const =0

References coefficientRing(), monoid(), Ring::text_out(), and FreeMonoid::variableNames().

Referenced by M2FreeAlgebraQuotient::text_out().