#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] |
- Examples:
- crt_test.cpp.
Definition at line 70 of file crt_naive.hpp.
References M.
{
static coprime_moduli_sequence<M,W> seq;
v= vector<M,V> (M (0), s);
for (nat i= 0; i < s; i++) {
v[i]= seq[i];
if (v[i] == 0) return false;
}
return true; }
The documentation for this struct was generated from the following file:
- /Users/mourrain/Devel/mmx/algebramix/include/algebramix/crt_naive.hpp