#include <crt_int.hpp>
List of all members.
Static Public Member Functions
- template<typename M > static bool extend (vector< M > &v, nat i)
Detailed Description
Definition at line 81 of file crt_int.hpp.
Member Function Documentation
static bool extend |
( |
vector< M > & |
v, |
|
|
nat |
i |
|
) |
| [inline, static] |
Definition at line 94 of file crt_int.hpp.
References M, and mmx::N().
{
if (N(v) == 0) v= vec (M(2), M(3));
nat p= *(v[N(v) - 1]) + 2;
while (N(v) < i) {
if (is_prime (v, p)) v << M(p);
p += 2;
}
return true; }
The documentation for this struct was generated from the following file:
- /Users/mourrain/Devel/mmx/algebramix/include/algebramix/crt_int.hpp