Public Member Functions | |
Clucas_capsule (void) | |
unsigned int | lucas (const unsigned int Radikant, const unsigned int Primenumber) |
Private Member Functions | |
unsigned int | lucasv (const unsigned int Primenumber, const unsigned int m) |
Private Attributes | |
unsigned int | lucas_p |
unsigned int | lucas_q |
unsigned int | lucas_p_inv |
int | lucas_cache_index |
unsigned int | lucas_cache [lucas_cache_size][2] |
Static Private Attributes | |
static const int | lucas_cache_size = 128 |
Definition at line 25 of file sqrt_modulo.cc.
numtheory::Clucas_capsule::Clucas_capsule | ( | void | ) | [inline] |
Definition at line 34 of file sqrt_modulo.cc.
unsigned int numtheory::Clucas_capsule::lucasv | ( | const unsigned int | Primenumber, | |
const unsigned int | m | |||
) | [private] |
Definition at line 39 of file sqrt_modulo.cc.
References cerr, std::cerr, endl(), std::endl(), lucas_cache, lucas_cache_index, lucas_cache_size, lucas_p, lucas_p_inv, lucas_q, numtheory::mulmod(), numtheory::powmod(), and numtheory::squaremod().
Referenced by lucas().
unsigned int numtheory::Clucas_capsule::lucas | ( | const unsigned int | Radikant, | |
const unsigned int | Primenumber | |||
) |
Definition at line 81 of file sqrt_modulo.cc.
References cerr, std::cerr, endl(), std::endl(), exit(), numtheory::fastinvmod(), numtheory::legendre(), lucas_cache_index, lucas_p, lucas_p_inv, lucas_q, lucasv(), numtheory::mulmod(), and numtheory::squaremod().
Referenced by numtheory::sqrtmod().
const int numtheory::Clucas_capsule::lucas_cache_size = 128 [static, private] |
unsigned int numtheory::Clucas_capsule::lucas_p [private] |
unsigned int numtheory::Clucas_capsule::lucas_q [private] |
unsigned int numtheory::Clucas_capsule::lucas_p_inv [private] |
int numtheory::Clucas_capsule::lucas_cache_index [private] |
unsigned int numtheory::Clucas_capsule::lucas_cache[lucas_cache_size][2] [private] |