#include <modular.hpp>
Definition at line 115 of file modular.hpp.
typedef M::base C |
Definition at line 119 of file modular.hpp.
typedef M modulus |
Definition at line 118 of file modular.hpp.
typedef V::template modulus_storage<M> S |
Definition at line 120 of file modular.hpp.
modular | ( | ) | [inline] |
Definition at line 131 of file modular.hpp.
References modular< M, V >::get_modulus(), and modular< M, V >::rep.
00131 { encode_mod (rep, C (), get_modulus ()); }
Definition at line 133 of file modular.hpp.
Definition at line 135 of file modular.hpp.
References modular< M, V >::get_modulus(), and modular< M, V >::rep.
00135 { 00136 if (reduced) rep = a; 00137 else encode_mod (rep, a, get_modulus ()); }
Definition at line 139 of file modular.hpp.
References modular< M, V >::get_modulus(), modular< M, V >::rep, and VERIFY.
00139 { 00140 VERIFY (p == get_modulus (), "wrong modulus"); 00141 if (reduced) rep= s; 00142 else encode_mod (rep, s, p); }
modular | ( | const O & | a | ) | [inline] |
Definition at line 145 of file modular.hpp.
References modular< M, V >::get_modulus(), and modular< M, V >::rep.
00145 { 00146 encode_mod (rep, as<C> (a), get_modulus ()); }
static M get_modulus | ( | ) | [inline, static] |
Definition at line 123 of file modular.hpp.
Referenced by modular< M, modular_local >::get_modulus(), modular< M, modular_local >::modular(), modular< M, V >::modular(), and modular< M, V >::operator*().
00123 { return S::get_modulus (); }
Definition at line 155 of file modular.hpp.
References modular< M, V >::rep.
00155 { 00156 return rep != a.rep; }
C operator* | ( | ) | const [inline] |
Definition at line 126 of file modular.hpp.
References modular< M, V >::get_modulus(), and modular< M, V >::rep.
00126 { 00127 C dest; 00128 decode_mod (dest, rep, get_modulus ()); 00129 return dest; }
Definition at line 148 of file modular.hpp.
References modular< M, V >::rep.
00148 { 00149 rep = a.rep; 00150 return *this; }
Definition at line 152 of file modular.hpp.
References modular< M, V >::rep.
00152 { 00153 return rep == a.rep; }
static void set_modulus | ( | const M & | p | ) | [inline, static] |
Definition at line 124 of file modular.hpp.
Referenced by modular< M, modular_local >::modular(), modular< M, modular_local >::set_local_modulus(), and modular< M, modular_local >::set_modulus().
00124 { S::set_modulus (p); }
Definition at line 122 of file modular.hpp.
Referenced by modular< M, modular_local >::modular(), modular< M, V >::modular(), modular< M, modular_local >::operator!=(), modular< M, V >::operator!=(), modular< M, modular_local >::operator*(), modular< M, V >::operator*(), modular< M, modular_local >::operator=(), modular< M, V >::operator=(), modular< M, modular_local >::operator==(), and modular< M, V >::operator==().