Modules | |
Signed integers | |
Classes | |
class | mp::mpn_ |
First level core class that provides natural numbers to the MP++ library. More... | |
Functions | |
radix_type | mp::guessbase (const string &s, radix_type b) |
Guess the base of a number in a string. | |
string::size_type | mp::isNum (const string &s, radix_type b) |
Count the number of digits in a valid number. | |
void | mp::setchunk (mpn_::radix_type b, std::string::size_type &chunksize, mpn_::limb_type &chunk) |
Sets the chunk size for a particular base. | |
void | mp::stringclean (string &s, mpn_::radix_type b, int clear_zero) |
Clean out the strings that will be converted with mpn_::setString(). |
|
Guess the base of a number in a string. Uses the first few characters to guess what base the number is.
|
|
Count the number of digits in a valid number.
|
|
Sets the chunk size for a particular base. A chunk is the largest power of the base that can fit inside a limb.
|
|
Clean out the strings that will be converted with mpn_::setString().
|