|
Macaulay2 Engine
|
Lightweight counter attached to a ConcreteVectorArithmetic<Ring> for tracking how many coefficient additions a reduction performed. More...
#include <VectorArithmetic.hpp>
Public Member Functions | |
| VectorArithmeticStats () | |
| void | incrementNumAdditions () const |
| long | numAdditions () const |
Private Attributes | |
| long | mNumAdditions |
Lightweight counter attached to a ConcreteVectorArithmetic<Ring> for tracking how many coefficient additions a reduction performed.
The mNumAdditions counter is mutable so that it can be incremented from within const arithmetic methods. numAdditions() reports the running total. Plugged into the F4 / GB code paths via VectorArithmetic::numAdditions() for profiling.
Definition at line 130 of file VectorArithmetic.hpp.