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

◆ start_computation()

void gbA::start_computation ( )
virtual

Implements GBComputation.

Definition at line 2612 of file gb-default.cpp.

2613{
2614 ncalls = 0;
2615 nloops = 0;
2616 nsaved_unneeded = 0;
2618 if (M2_gbTrace >= 1)
2619 {
2621 if (M2_gbTrace >= 3)
2622 {
2623 buffer o;
2624 emit_line(o.str());
2625 o.reset();
2626 o << "#reduction steps = " << stats_nreductions;
2627 emit_line(o.str());
2628 o.reset();
2629 o << "#spairs done = " << stats_npairs;
2630 emit_line(o.str());
2631 o.reset();
2632 o << "ncalls = " << ncalls;
2633 emit_line(o.str());
2634 o.reset();
2635 o << "nloop = " << nloops;
2636 emit_line(o.str());
2637 o.reset();
2638 o << "nsaved = " << nsaved_unneeded;
2639 emit_line(o.str());
2640 }
2641 if (M2_gbTrace >= 15) show();
2642 }
2643}
char * str()
Definition buffer.hpp:72
void reset()
Definition buffer.hpp:69
void show_mem_usage()
void show() const
int stats_nreductions
int stats_npairs
void do_computation()
static unsigned long nsaved_unneeded
static unsigned long nloops
static unsigned long ncalls
int M2_gbTrace
Definition m2-types.cpp:52
void emit_line(const char *s)
Definition text-io.cpp:47

References do_computation(), emit_line(), M2_gbTrace, ncalls, nloops, nsaved_unneeded, buffer::reset(), show(), show_mem_usage(), stats_npairs, stats_nreductions, and buffer::str().