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

◆ debug_out()

void MonomialIdeal::debug_out ( int disp = 1) const

Definition at line 508 of file monideal.cpp.

510{
511 nlists = 0;
512 nnodes = 0;
513 nleaves = 0;
514 ndepth = 0;
515 if (mi != nullptr) do_tree(mi, 0, 0, disp);
516 buffer o;
517 o << "list nodes = " << nlists << newline;
518 o << "internal nodes = " << nnodes << newline;
519 o << "monomials = " << nleaves << newline;
520 o << "max depth = " << ndepth << newline;
521 emit(o.str());
522}
void do_tree(Nmi_node *p, int depth, int indent, int disp) const
Definition monideal.cpp:494
Nmi_node * mi
Definition monideal.hpp:138
char * str()
Definition buffer.hpp:72
static int ndepth
static int nnodes
static int nleaves
static int nlists
char newline[]
Definition m2-types.cpp:49
void emit(const char *s)
Definition text-io.cpp:41

References do_tree(), emit(), mi, ndepth, newline, nleaves, nlists, nnodes, and buffer::str().

Referenced by res2_comp::new_pairs(), res_comp::new_pairs(), and res_comp::skeleton_pairs().