#include <residue.hpp>
Public Types | |
typedef T | value_type |
typedef M | module_type |
typedef Config | config_type |
Public Member Functions | |
residue () | |
Creates common zero. Without module assigned. | |
template<typename T1> | |
residue (const T1 &x) | |
Creates common object of type T. Without module assigned. | |
template<typename T1> | |
residue (const residue< T1 > &x) | |
residue (const T &x, const M &m) | |
residue (const char *s) | |
const T & | value () const |
Access to the residue value itself. Read only. | |
const M & | module () const |
Access to the module value. Read only. | |
T & | value () |
Access to the residue value itself. | |
M & | module () |
Access to the module value. | |
bool | is_normal () const |
Check if value is correct residue value modulo module. | |
void | normalize () const |
Performs normalization of residue value. | |
residue | operator- () const |
const residue & | operator+ () const |
residue & | operator++ () |
residue & | operator-- () |
residue | operator++ (int) |
residue | operator-- (int) |
template<typename T1, typename M1, typename Config1> | |
residue & | operator+= (const residue< T1, M1, Config1 > &x) |
template<typename T1, typename M1, typename Config1> | |
residue & | operator-= (const residue< T1, M1, Config1 > &x) |
template<typename T1, typename M1, typename Config1> | |
residue & | operator *= (const residue< T1, M1, Config1 > &x) |
template<typename T1, typename M1, typename Config1> | |
residue & | operator/= (const residue< T1, M1, Config1 > &x) |
template<typename T1, typename M1, typename Config1> | |
residue & | operator%= (const residue< T1, M1, Config1 > &x) |
bool | operator! () const |
operator bool () const | |
operator T () const |
Definition at line 61 of file residue.hpp.
typedef Config Arageli::residue< T, M, Config >::config_type |
Definition at line 74 of file residue.hpp.
typedef M Arageli::residue< T, M, Config >::module_type |
Definition at line 73 of file residue.hpp.
typedef T Arageli::residue< T, M, Config >::value_type |
Definition at line 72 of file residue.hpp.
Arageli::residue< T, M, Config >::residue | ( | ) | [inline] |
Arageli::residue< T, M, Config >::residue | ( | const T1 & | x | ) | [inline] |
Creates common object of type T. Without module assigned.
Definition at line 81 of file residue.hpp.
Arageli::residue< T, M, Config >::residue | ( | const residue< T1 > & | x | ) | [inline] |
Definition at line 85 of file residue.hpp.
Arageli::residue< T, M, Config >::residue | ( | const T & | x, | |
const M & | m | |||
) | [inline] |
Definition at line 88 of file residue.hpp.
Arageli::residue< T, M, Config >::residue | ( | const char * | s | ) |
Definition at line 358 of file residue.hpp.
bool Arageli::residue< T, M, Config >::is_normal | ( | ) | const [inline] |
M& Arageli::residue< T, M, Config >::module | ( | ) | [inline] |
const M& Arageli::residue< T, M, Config >::module | ( | ) | const [inline] |
void Arageli::residue< T, M, Config >::normalize | ( | ) | const [inline] |
residue& Arageli::residue< T, M, Config >::operator *= | ( | const residue< T1, M1, Config1 > & | x | ) | [inline] |
Definition at line 183 of file residue.hpp.
Arageli::residue< T, M, Config >::operator bool | ( | ) | const [inline] |
Definition at line 223 of file residue.hpp.
Arageli::residue< T, M, Config >::operator T | ( | ) | const [inline] |
Definition at line 225 of file residue.hpp.
bool Arageli::residue< T, M, Config >::operator! | ( | ) | const [inline] |
Definition at line 222 of file residue.hpp.
residue& Arageli::residue< T, M, Config >::operator%= | ( | const residue< T1, M1, Config1 > & | x | ) | [inline] |
Definition at line 219 of file residue.hpp.
const residue& Arageli::residue< T, M, Config >::operator+ | ( | ) | const [inline] |
Definition at line 129 of file residue.hpp.
residue Arageli::residue< T, M, Config >::operator++ | ( | int | ) | [inline] |
Definition at line 147 of file residue.hpp.
residue& Arageli::residue< T, M, Config >::operator++ | ( | ) | [inline] |
Definition at line 131 of file residue.hpp.
residue& Arageli::residue< T, M, Config >::operator+= | ( | const residue< T1, M1, Config1 > & | x | ) | [inline] |
Definition at line 151 of file residue.hpp.
residue Arageli::residue< T, M, Config >::operator- | ( | ) | const [inline] |
Definition at line 123 of file residue.hpp.
residue Arageli::residue< T, M, Config >::operator-- | ( | int | ) | [inline] |
Definition at line 148 of file residue.hpp.
residue& Arageli::residue< T, M, Config >::operator-- | ( | ) | [inline] |
Definition at line 139 of file residue.hpp.
residue& Arageli::residue< T, M, Config >::operator-= | ( | const residue< T1, M1, Config1 > & | x | ) | [inline] |
Definition at line 167 of file residue.hpp.
residue& Arageli::residue< T, M, Config >::operator/= | ( | const residue< T1, M1, Config1 > & | x | ) | [inline] |
Definition at line 199 of file residue.hpp.
T& Arageli::residue< T, M, Config >::value | ( | ) | [inline] |
const T& Arageli::residue< T, M, Config >::value | ( | ) | const [inline] |