carl  24.04
Computer ARithmetic Library
BuchbergerStats.h
Go to the documentation of this file.
1 
2 
3 
4 /**
5  * @file BuchbergerStats.h
6  * @author Sebastian Junges
7  *
8  */
9 
10 #pragma once
11 
12 namespace carl
13 {
14 
15 /**
16  * A little class for gathering statistics about the Buchberger algorithm calls.
17  */
19 {
20 public:
21  static BuchbergerStats* getInstance( );
22 
23  /**
24  * Count that we found a TSQ which had a constant trailing term
25  */
27  {
29  }
30 
31  /**
32  * Count that we found a TSQ which did not have a constant trailing term
33  */
35  {
37  }
38 
39  /**
40  * Count that we could reduce a single term polynomial by calculating the Squarefree part
41  */
42  void SingleTermSFP( )
43  {
45  }
46 
48  {
50  }
51  /**
52  * Count that we take and reduce another S-Pair
53  */
54  void TreatSPair( )
55  {
57  }
58 
59  /**
60  * Count that an S-Pair reduced to some non zero polynomial
61  */
63  {
65  }
66 
67  unsigned getNrTSQWithConstant( ) const
68  {
69  return mNrOfTSQWithConstant;
70  }
71 
72  unsigned getNrTSQWithoutConstant( ) const
73  {
75  }
76 
77  unsigned getSingleTermSFP( ) const
78  {
79  return mNrOfSingleTermSFP;
80  }
81 
82  unsigned getNrReducibleIdentities( ) const
83  {
85  }
86 protected:
87 
91  mNrOfSingleTermSFP( 0 ),
93  mNrOfReductions( 0 ),
95  {
96  }
101  unsigned mNrOfReductions;
103 
104 private:
106 };
107 }
carl is the main namespace for the library.
A little class for gathering statistics about the Buchberger algorithm calls.
void SingleTermSFP()
Count that we could reduce a single term polynomial by calculating the Squarefree part.
unsigned getNrTSQWithConstant() const
unsigned getNrReducibleIdentities() const
void NonZeroReduction()
Count that an S-Pair reduced to some non zero polynomial.
void TSQWithConstant()
Count that we found a TSQ which had a constant trailing term.
static BuchbergerStats * instance
unsigned getNrTSQWithoutConstant() const
void TSQWithoutConstant()
Count that we found a TSQ which did not have a constant trailing term.
unsigned getSingleTermSFP() const
static BuchbergerStats * getInstance()
void TreatSPair()
Count that we take and reduce another S-Pair.
unsigned mNrOfTSQWithoutConstant