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

◆ text_out()

void FreeModule::text_out ( buffer & o) const

Definition at line 471 of file freemod.cpp.

472{
473 int i;
474 int rk = rank();
475 o << "free(rank " << rk << " degrees = {";
476 auto D = R->degree_monoid();
477 for (i = 0; i < rk; i++)
478 {
479 if (i != 0) o << ", ";
480 D->elem_text_out(o, degree(i));
481 }
482 o << "}";
483 if (schreyer != nullptr) schreyer->text_out(o);
484 o << ')';
485}
SchreyerOrder * schreyer
Definition freemod.hpp:73
const_monomial degree(int i) const
Definition freemod.hpp:104
const Ring * R
Definition freemod.hpp:75
int rank() const
Definition freemod.hpp:105

References degree(), R, rank(), and schreyer.

Referenced by dfree(), and IM2_FreeModule_to_string().