Macaulay2 Engine
Loading...
Searching...
No Matches
VectorArithmeticStats Class Reference

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

Detailed Description

Lightweight counter attached to a ConcreteVectorArithmetic<Ring> for tracking how many coefficient additions a reduction performed.

Note
AI-generated documentation. Verify against the source before relying on it.

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.


The documentation for this class was generated from the following file: