An object of the class Gmpz is an arbitrary precision integer based on the Gnu Multiple Precision Arithmetic Library.
#include <CGAL/Gmpz.h>
| |
creates an uninitialized multiple precision integer z.
| |
| |
creates a multiple-precision integer initialized with
i.
| |
| |
creates a multiple-precision integer initialized with
the integral part of d.
|
|
| prefix increment. |
|
| postfix increment. |
|
| prefix decrement. |
|
| postfix decrement. |
|
| rightshift by i. |
|
| leftshift by i. |
|
| rightshift by i, where i>=0. |
|
| leftshift by i, where i>=0. |
|
| bitwise AND. |
|
| bitwise IOR. |
|
| bitwise XOR. |
|
| bitwise AND. |
|
| bitwise IOR. |
|
| bitwise XOR. |
|
| Returns the sign of z. |
|
| Returns the bit-size (that is, the number of bits needed to represent the mantissa) of z. |
|
| Returns the size in limbs of z. A limb is the type used by Gmp to represent the integer (usually long). |
|
| Returns the approximate number of decimal digits needed to represent z. Approximate means either a correct result, either the correct result plus one. |
|
| Returns a double approximation of z. The integer is truncated if needed. If the exponent of the conversion is too big, the result is system dependent (returning infinity where it is supported). |
|
| writes z to the ostream out. |
|
| reads an integer from in, then converts it to a Gmpz. |