| |
|
| java.lang.Object java.math.MutableBigInteger java.math.SignedMutableBigInteger
SignedMutableBigInteger | class SignedMutableBigInteger extends MutableBigInteger (Code) | | A class used to represent multiprecision integers that makes efficient
use of allocated space by allowing a number to occupy only part of
an array so that the arrays do not have to be reallocated as often.
When performing an operation with many iterations the array used to
hold a number is only increased when necessary and does not have to
be the same size as the number it represents. A mutable number allows
calculations to occur on the same number without having to create
a new number for every step of the calculation as occurs with
BigIntegers.
Note that SignedMutableBigIntegers only support signed addition and
subtraction. All other operations occur as with MutableBigIntegers.
See Also: BigInteger version: 1.6, 02/02/00 author: Michael McCloskey since: 1.3 |
Field Summary | |
int | sign The sign of this MutableBigInteger. |
sign | int sign(Code) | | The sign of this MutableBigInteger.
|
SignedMutableBigInteger | SignedMutableBigInteger()(Code) | | The default constructor. An empty MutableBigInteger is created with
a one word capacity.
|
SignedMutableBigInteger | SignedMutableBigInteger(int val)(Code) | | Construct a new MutableBigInteger with a magnitude specified by
the int val.
|
SignedMutableBigInteger | SignedMutableBigInteger(MutableBigInteger val)(Code) | | Construct a new MutableBigInteger with a magnitude equal to the
specified MutableBigInteger.
|
signedSubtract | void signedSubtract(MutableBigInteger addend)(Code) | | Signed subtraction built upon unsigned add and subtract.
|
toString | public String toString()(Code) | | Print out the first intLen ints of this MutableBigInteger's value
array starting at offset.
|
Methods inherited from java.math.MutableBigInteger | void add(MutableBigInteger addend)(Code)(Java Doc) static int binaryGcd(int a, int b)(Code)(Java Doc) void clear()(Code)(Java Doc) final int compare(MutableBigInteger b)(Code)(Java Doc) void copyValue(MutableBigInteger val)(Code)(Java Doc) void copyValue(int[] val)(Code)(Java Doc) void divide(MutableBigInteger b, MutableBigInteger quotient, MutableBigInteger rem)(Code)(Java Doc) void divideOneWord(int divisor, MutableBigInteger quotient)(Code)(Java Doc) MutableBigInteger euclidModInverse(int k)(Code)(Java Doc) static MutableBigInteger fixup(MutableBigInteger c, MutableBigInteger p, int k)(Code)(Java Doc) MutableBigInteger hybridGCD(MutableBigInteger b)(Code)(Java Doc) static int inverseMod32(int val)(Code)(Java Doc) boolean isEven()(Code)(Java Doc) boolean isNormal()(Code)(Java Doc) boolean isOdd()(Code)(Java Doc) boolean isOne()(Code)(Java Doc) boolean isZero()(Code)(Java Doc) void leftShift(int n)(Code)(Java Doc) static MutableBigInteger modInverseBP2(MutableBigInteger mod, int k)(Code)(Java Doc) MutableBigInteger modInverseMP2(int k)(Code)(Java Doc) void mul(int y, MutableBigInteger z)(Code)(Java Doc) void multiply(MutableBigInteger y, MutableBigInteger z)(Code)(Java Doc) MutableBigInteger mutableModInverse(MutableBigInteger p)(Code)(Java Doc) final void normalize()(Code)(Java Doc) void reset()(Code)(Java Doc) void rightShift(int n)(Code)(Java Doc) void setInt(int index, int val)(Code)(Java Doc) void setValue(int[] val, int length)(Code)(Java Doc) int subtract(MutableBigInteger b)(Code)(Java Doc) int[] toIntArray()(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|
|