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

◆ stats()

void binomial_s_pair_set::stats ( ) const

Definition at line 627 of file gb-toric.cpp.

628{
629 buffer o;
630 int np, nl;
631 np = nl = 0;
632 o << " degree"
633 << " pairs"
634 << " left"
635 << " done" << newline;
636 for (int i = 0; i <= _max_degree; i++)
637 {
638 np += _npairs[2 * i];
639 nl += _npairs[2 * i + 1];
640 o.put(i, 7);
641 o << " ";
642 o.put(_npairs[2 * i], 6);
643 o << " ";
644 o.put(_npairs[2 * i + 1], 6);
645 o << " ";
646 o.put(_npairs[2 * i] - _npairs[2 * i + 1], 6);
647 o << newline;
648 }
649 o << " total ";
650 o.put(np, 6);
651 o << " ";
652 o.put(nl, 6);
653 o << " ";
654 o.put(np - nl, 6);
655 o << newline;
656 emit(o.str());
657}
gc_vector< int > _npairs
Definition gb-toric.hpp:204
char * str()
Definition buffer.hpp:72
void put(const char *s)
Definition buffer.cpp:35
char newline[]
Definition m2-types.cpp:49
void emit(const char *s)
Definition text-io.cpp:41

References _max_degree, _npairs, emit(), newline, buffer::put(), and buffer::str().