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

◆ stats()

void hilb_comp::stats ( ) const

Definition at line 618 of file hilb.cpp.

619{
620 buffer o;
621 o << "--- Hilbert Function Statistics---------------------" << newline;
622 o << "#steps = " << nsteps << newline;
623 o << "Max depth = " << maxdepth << newline;
624 o << "current depth = " << depth << newline;
625 o << "#ideal = " << nideal << newline;
626 o << "#recurse = " << nrecurse << newline;
627
628 hilb_step *p = current;
629 int d = depth;
630 while (p != nullptr)
631 {
632 o << "----- depth " << d << " -------------" << newline;
633 o << " " << p->monids.size() << " monomial ideals total" << newline;
634 o << " " << p->i << " = current location" << newline;
635 o << " " << p->first_sum + 1 << " sum monomial ideals" << newline;
636 o << " h0 = ";
637 R->elem_text_out(o, p->h0);
638 o << newline;
639 o << " h1 = ";
640 R->elem_text_out(o, p->h1);
641 o << newline;
642 for (int i = 0; i < p->monids.size(); i++)
643 {
644 o << " ---- monomial ideal ---------------" << newline;
645 o << " ";
646 p->monids[i]->text_out(o);
647 o << newline;
648 }
649 p = p->up;
650 d--;
651 }
652}
int nideal
Definition hilb.hpp:116
int nrecurse
Definition hilb.hpp:117
const PolynomialRing * R
Definition hilb.hpp:95
hilb_step * current
Definition hilb.hpp:110
int nsteps
Definition hilb.hpp:113
int depth
Definition hilb.hpp:114
int maxdepth
Definition hilb.hpp:115
int p
char newline[]
Definition m2-types.cpp:49

References current, depth, maxdepth, newline, nideal, nrecurse, nsteps, p, and R.