See: Description
Class | Description |
---|---|
Mpfr |
MPFR multi-precision floating-point numbers.
|
Mpq |
GMP arbitrary precision rationals.
|
Mpz |
GMP arbitrary precision integers.
|
MpzRef |
Class of references to numerators and denominator of
Mpq
objects. |
RandState |
Pseudo-random number generation states.
|
Test |
Simple test for the Java GMP / MPFR binding.
|
This includes arbitrary-precision integers Mpz
and
rationals Mpq
(growing as needed), and multi-precision
floating-points numbers Mpfr
that extend the IEEE-754 standard
to an arbitrary, user-chosen precision level.
Unlike Java's BigIntegers
, all Mpz
, Mpq
,
and Mpfr
objects are mutable.
Most arithmetic operators are in three-address mode: the this object is the destination while the operator arguments are unchanged (with the exception of the division and extended gcd, where extra results are returned in the first arguments). It is possible to pass the same object (including this) as source and destination of an operation. However, when an operator modifies several objects, these must be distinct.
The binding is based on GMP 4.3.2 and MPFR 2.4.1.