GmpBigInteger Class Reference
[Mathematical utilities]

Inheritance diagram for GmpBigInteger:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 add (BigInteger $x)
 
Returns:
GmpBigInteger

 compareTo (BigInteger $x)
 mod (BigInteger $mod)
 
Returns:
GmpBigInteger

 pow (BigInteger $exp)
 
Returns:
GmpBigInteger

 modPow (BigInteger $exp, BigInteger $mod)
 
Returns:
GmpBigInteger

 subtract (BigInteger $x)
 
Returns:
GmpBigInteger

 mul (BigInteger $x)
 
Returns:
GmpBigInteger

 div (BigInteger $x)
 
Returns:
GmpBigInteger

 toString ()
 toBinary ()
 convert to big-endian signed two's complement notation
 intValue ()
 floatValue ()

Static Public Member Functions

static make ($number, $base=10)
 
Returns:
GmpBigInteger

static getFactory ()
 
Returns:
GmpBigIntegerFactory

static makeFromBinary ($binary)
 
Returns:
GmpBigInteger


Private Attributes

 $resource = null


Detailed Description

Definition at line 16 of file GmpBigInteger.class.php.


Member Function Documentation

static GmpBigInteger::make ( number,
base = 10 
) [static]

Returns:
GmpBigInteger

Definition at line 23 of file GmpBigInteger.class.php.

References Assert::isTrue().

Referenced by makeFromBinary(), and GmpBigIntegerFactory::makeNumber().

Here is the call graph for this function:

static GmpBigInteger::getFactory (  )  [static]

Returns:
GmpBigIntegerFactory

Implements BigInteger.

Definition at line 36 of file GmpBigInteger.class.php.

References GmpBigIntegerFactory::me().

Here is the call graph for this function:

static GmpBigInteger::makeFromBinary ( binary  )  [static]

Returns:
GmpBigInteger

Definition at line 44 of file GmpBigInteger.class.php.

References make(), and mul().

Referenced by GmpBigIntegerFactory::makeFromBinary().

Here is the call graph for this function:

GmpBigInteger::add ( BigInteger x  ) 

Returns:
GmpBigInteger

Implements BigInteger.

Definition at line 71 of file GmpBigInteger.class.php.

GmpBigInteger::compareTo ( BigInteger x  ) 

Implements BigInteger.

Definition at line 78 of file GmpBigInteger.class.php.

References $out.

GmpBigInteger::mod ( BigInteger mod  ) 

Returns:
GmpBigInteger

Implements BigInteger.

Definition at line 93 of file GmpBigInteger.class.php.

GmpBigInteger::pow ( BigInteger exp  ) 

Returns:
GmpBigInteger

Implements BigInteger.

Definition at line 103 of file GmpBigInteger.class.php.

References intValue().

Referenced by floatValue().

Here is the call graph for this function:

GmpBigInteger::modPow ( BigInteger exp,
BigInteger mod 
)

Returns:
GmpBigInteger

Implements BigInteger.

Definition at line 113 of file GmpBigInteger.class.php.

GmpBigInteger::subtract ( BigInteger x  ) 

Returns:
GmpBigInteger

Implements BigInteger.

Definition at line 127 of file GmpBigInteger.class.php.

GmpBigInteger::mul ( BigInteger x  ) 

Returns:
GmpBigInteger

Implements BigInteger.

Definition at line 137 of file GmpBigInteger.class.php.

Referenced by makeFromBinary().

GmpBigInteger::div ( BigInteger x  ) 

Returns:
GmpBigInteger

Implements BigInteger.

Definition at line 147 of file GmpBigInteger.class.php.

GmpBigInteger::toString (  ) 

Implements Stringable.

Definition at line 154 of file GmpBigInteger.class.php.

GmpBigInteger::toBinary (  ) 

convert to big-endian signed two's complement notation

Implements BigInteger.

Definition at line 159 of file GmpBigInteger.class.php.

GmpBigInteger::intValue (  ) 

Implements BigInteger.

Definition at line 188 of file GmpBigInteger.class.php.

Referenced by pow().

GmpBigInteger::floatValue (  ) 

Implements BigInteger.

Definition at line 200 of file GmpBigInteger.class.php.

References pow().

Here is the call graph for this function:


Member Data Documentation

GmpBigInteger::$resource = null [private]

Definition at line 18 of file GmpBigInteger.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:33 2007 for onPHP by  doxygen 1.5.4