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

◆ debug_out()

template<typename Key>
void F4MonomialLookupTableT< Key >::debug_out ( int disp = 1) const
private

Definition at line 432 of file f4-monlookup.cpp.

434{
435 nlists = 0;
436 nnodes = 0;
437 nleaves = 0;
438 ndepth = 0;
439 for (auto& i : mis)
440 if (i != nullptr) do_tree(i, 0, 0, disp);
441 buffer o;
442 o << "list nodes = " << nlists << newline;
443 o << "internal nodes = " << nnodes << newline;
444 o << "monomials = " << nleaves << newline;
445 o << "max depth = " << ndepth << newline;
446 emit(o.str());
447}
void do_tree(mi_node *p, int depth, int indent, int disp) const
std::vector< mi_node * > mis
void emit(const char *s)
Definition text-io.cpp:41

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