public class RadixConverter
extends java.lang.Object
For an application of this see the FPE parameter classes.
Constructor and Description |
---|
RadixConverter(int radix) |
RadixConverter(int radix,
int numberOfCachedPowers) |
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
fromEncoding(short[] digits) |
int |
getDigitsGroupLength() |
int |
getRadix() |
void |
toEncoding(java.math.BigInteger number,
int messageLength,
short[] out) |
public RadixConverter(int radix, int numberOfCachedPowers)
radix
- the radix to use for base conversionsnumberOfCachedPowers
- number of intermediate base powers to precompute and cache.public RadixConverter(int radix)
radix
- the radix to use for base conversions.