Cyclic group of order N. More...
#include <Cyclic.h>
Public Member Functions | |
Cyclic () | |
Default constructor yields identity. More... | |
Cyclic (size_t i) | |
Constructor. More... | |
bool | equals (const Cyclic &other, double tol=1e-9) const |
equals with an tolerance, prints out message if unequal More... | |
operator size_t () const | |
Cast to size_t. More... | |
Cyclic | operator+ (const Cyclic &h) const |
Addition modulo N. More... | |
Cyclic | operator- () const |
Inverse. More... | |
Cyclic | operator- (const Cyclic &h) const |
Subtraction modulo N. More... | |
void | print (const std::string &s="") const |
print with optional string More... | |
Static Public Member Functions | |
static Cyclic | Identity () |
Private Attributes | |
size_t | i_ |
we just use an unsigned int More... | |
Cyclic group of order N.
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |