Cayley
Pseudo-Random Bits from Finite Groups
PowerTable.h
Go to the documentation of this file.
1 
4 #ifndef __powertable__
5 #define __powertable__
6 
7 #include <vector>
8 
9 #include "Permutation.h"
10 
16 
18  private:
19  std::vector<CPerm*> m_stdPower;
20  uint32_t m_nOrder = 0;
21 
22  public:
23  ~CPowerTable();
24 
25  void Initialize(const CPerm& p);
26 
27  const CPerm& operator[](int n) const;
28  const uint32_t GetOrder() const;
29 }; //CPowerTable
30 
31 #endif
const uint32_t GetOrder() const
Get the order of the permutation.
Definition: PowerTable.cpp:42
~CPowerTable()
Destructor.
Definition: PowerTable.cpp:8
uint32_t m_nOrder
Order of the underlying permutation.
Definition: PowerTable.h:20
Permutation.
Definition: Permutation.h:20
const CPerm & operator[](int n) const
Look up power of permutation.
Definition: PowerTable.cpp:51
Table of all powers of a permutation.
Definition: PowerTable.h:17
std::vector< CPerm * > m_stdPower
Table of powers.
Definition: PowerTable.h:19
void Initialize(const CPerm &p)
Initialize.
Definition: PowerTable.cpp:17
Declaration of the permutation CPerm.