Cyclic group of order N. More...
#include <Cyclic.h>
Public Member Functions | |
Cyclic (size_t i) | |
Constructor. More... | |
Cyclic () | |
Default constructor yields identity. 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 Cyclic &h) const |
Subtraction modulo N. More... | |
Cyclic | operator- () const |
Inverse. 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 |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |