Public Member Functions | |
Cnumbpart (const int n) | |
~Cnumbpart () | |
void | get_numbpart (mpz_t res, const int n) |
Private Types | |
typedef mpz_t * | Pmpz_t |
Private Member Functions | |
void | numbpart_recurse (const int n) |
Private Attributes | |
const int | size |
Pmpz_t *const | p |
Definition at line 34 of file numbpart.cc.
typedef mpz_t* numbpart::Cnumbpart::Pmpz_t [private] |
Definition at line 40 of file numbpart.cc.
numbpart::Cnumbpart::Cnumbpart | ( | const int | n | ) | [inline] |
numbpart::Cnumbpart::~Cnumbpart | ( | ) | [inline] |
Definition at line 49 of file numbpart.cc.
References mpz_clear(), p, and size.
void numbpart::Cnumbpart::numbpart_recurse | ( | const int | n | ) | [private] |
Definition at line 65 of file numbpart.cc.
References std::floor(), mpz_add(), mpz_init(), mpz_init_set_si(), mpz_sub(), numbpart::omega(), p, and std::sqrt().
Referenced by get_numbpart().
void numbpart::Cnumbpart::get_numbpart | ( | mpz_t | res, | |
const int | n | |||
) | [inline] |
Definition at line 55 of file numbpart.cc.
References mpz_set(), numbpart_recurse(), p, and size.
Referenced by numbpart::numbpart().
const int numbpart::Cnumbpart::size [private] |
Definition at line 39 of file numbpart.cc.
Referenced by Cnumbpart(), get_numbpart(), and ~Cnumbpart().
Pmpz_t* const numbpart::Cnumbpart::p [private] |
Definition at line 41 of file numbpart.cc.
Referenced by Cnumbpart(), get_numbpart(), numbpart_recurse(), and ~Cnumbpart().