moduli_helper< C, M, W > Struct Template Reference
#include <crt_naive.hpp>
List of all members.
Static Public Member Functions
- template<typename V > static bool covering (vector< M, V > &v, nat s)
Detailed Description
template<typename C, typename M = modulus<C>, typename W = typename coprime_moduli_helper< M >::sequence>
struct mmx::moduli_helper< C, M, W >
Definition at line 68 of file crt_naive.hpp.
Member Function Documentation
| static bool covering |
( |
vector< M, V > & |
v, |
|
|
nat |
s | |
|
) |
| | [inline, static] |
Definition at line 70 of file crt_naive.hpp.
References M.
00070 {
00071 static coprime_moduli_sequence<M,W> seq;
00072 v= vector<M,V> (M (0), s);
00073 for (nat i= 0; i < s; i++) {
00074 v[i]= seq[i];
00075 if (v[i] == 0) return false;
00076 }
00077 return true; }
The documentation for this struct was generated from the following file: