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

◆ show()

void MonomialTable::show ( FILE * fil)

Definition at line 419 of file montable.cpp.

420{
421 mon_term *t, *head;
422 /* Loop through each component, display monomials(val) 10 per line */
423 fprintf(fil,
424 "monomial table: %d vars, %d components, %d elements\n",
425 this->_nvars,
426 static_cast<int>(_head.size()),
427 this->_count);
428 for (unsigned i = 1; i < _head.size(); i++)
429 {
430 head = this->_head[i];
431 if (head->_next == head) continue;
432 fprintf(fil, " -- component %d --\n", i);
433 for (t = head->_next; t != head; t = t->_next)
434 {
435 exponents_show(fil, t->_lead, _nvars);
436 fprintf(fil, " (%d)\n", t->_val);
437 }
438 }
439 fprintf(fil, "\n");
440}
static void exponents_show(FILE *fil, exponents_t exp, int nvars)
Definition montable.cpp:34
Doubly-linked-list node of a MonomialTable's per-component monomial list.
Definition montable.hpp:109

References MonomialTable::mon_term::_lead, MonomialTable::mon_term::_next, _nvars, MonomialTable::mon_term::_val, and exponents_show().