|
| | Z_mod () |
| | Default value 0. More...
|
| |
| | Z_mod (bool x) |
| | Initialize from 0,1. More...
|
| |
| | Z_mod (int x) |
| | Initialize from int. More...
|
| |
| | Z_mod (int64_t x) |
| | Initialize from 64bit int. More...
|
| |
| | operator char () const |
| |
| | operator short () const |
| |
| | operator int () const |
| |
| | operator int64_t () const |
| |
| | operator unsigned char () const |
| |
| | operator unsigned short () const |
| |
| | operator unsigned int () const |
| |
| | operator uint64_t () const |
| |
| Z_mod< N, T > | operator+ (Z_mod< N, T > b) const |
| |
| Z_mod< N, T > | operator- (Z_mod< N, T > b) const |
| |
| Z_mod< N, T > & | operator+= (Z_mod< N, T > b) |
| |
| Z_mod< N, T > & | operator-= (Z_mod< N, T > b) |
| |
| Z_mod< N, T > & | operator*= (Z_mod< N, T > b) |
| |
| Z_mod< N, T > & | operator/= (Z_mod< N, T > b) |
| |
| bool | operator== (Z_mod< N, T > a) const |
| |
| bool | operator!= (Z_mod< N, T > a) const |
| |
| bool | operator<= (Z_mod< N, T > a) const |
| | Needed for Eigen pruning; standard order on 0,...,N-1. More...
|
| |
template<int64_t N, typename T = int64_t>
class mackey::Z_mod< N, T >
The class of Z/N coefficients where N is prime.
The operators are self explanatory. User must ensure that N is prime for division to work.