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

◆ show()

void MonomialTableZZ::show ( FILE * fil) const

Definition at line 672 of file montableZZ.cpp.

673{
674 mon_term *t, *head;
675 /* Loop through each component, display monomials(val) 10 per line */
676 fprintf(fil,
677 "monomial table: %d vars, %d components, %d elements\n",
678 this->_nvars,
679 static_cast<int>(_head.size()),
680 this->_count);
681 for (unsigned i = 1; i < _head.size(); i++)
682 {
683 head = this->_head[i];
684 if (head->_next == head) continue;
685 fprintf(fil, " -- component %d --\n", i);
686 for (t = head->_next; t != head; t = t->_next)
687 {
688 show_mon_term(fil, t);
689 }
690 }
691 fprintf(fil, "\n");
692}
void show_mon_term(FILE *fil, mon_term *t) const
MonomialTable::mon_term plus an _coeff slot pointing at the entry's leading ZZ coefficient (or nullpt...

References MonomialTableZZ::mon_term::_next, and show_mon_term().

Referenced by showmontable().