- class mp_int
- extends mp as public
-
This class represents multi-precision integer.
- Author:
- Herman Harjono
- Version:
- Sep 21, 1998.
- Source:
- ../../include/mpint.h:16
mp_int
- [public] Copy constructor. Calls mp's copy constructor.
mp_int
- [public] Creates a mp_int from char*.
mp_int
- [public] Creates a mp_int from float / double.
mp_int
- [public] Creates a mp_int from int.
mp_int
- [public] Creates a mp_int (initialized to zero).
operator %= ( const mp_int & ja )
- [public] Calls operator% and operator=
operator *= ( const mp_int & ja )
- [public] Calls operator* and operator=
operator ++ ( )
- [public] Preincrement operator.
operator ++ ( int )
- [public] Postincrement operator.
operator += ( const mp_int & ja )
- [public] Calls operator+ and operator=
operator -- ( )
- [public] Predecrement operator.
operator -- ( int )
- [public] Postdecrement operator.
operator -= ( const mp_int & ja )
- [public] Calls operator- and operator=
operator = ( const char * )
- [public] Assignment operator.
operator = ( const double & )
- [public] Assignment operator.
operator = ( const int & ja )
- [public] Assignment operator.
operator = ( const mp_complex & )
- [public] Assignment operator. Gets the real part of the mp_complex number.
operator = ( const mp_int & ja )
- [public] Assignment operator.
operator = ( const mp_real & )
- [public] Assignment operator. Truncates the mp_real number.
operator/
- [public] Calls operator/ and operator=
mp_int
public mp_int mp_int(const mpprecision & precision = mpipl) ;
-
Creates a mp_int (initialized to zero).
-
- Parameters:
-
precision | The precision level of the object, in digits.
|
- See Also:
-
mp::mpipl
mp_int
public mp_int mp_int(int ia,const mpprecision & precision = mpipl) ;
-
Creates a mp_int from int.
-
- Parameters:
-
precision | The precision level of the object, in digits.
|
- See Also:
-
mp::mpipl
mp_int
public mp_int mp_int(double,const mpprecision & precision = mpipl) ;
-
Creates a mp_int from float / double.
-
- Parameters:
-
precision | The precision level of the object, in digits.
The default is assigned the value of mpipl.
|
- See Also:
-
mp::mpipl
mp_int
public mp_int mp_int(char *,const mpprecision & precision = mpipl) ;
-
Creates a mp_int from char*.
-
- Parameters:
-
precision | The precision level of the object, in digits.
The default is assigned the value of mpipl.
|
- See Also:
-
mp::mpipl
mp_int
public mp_int mp_int(const mp_int & in) ;
-
Copy constructor. Calls mp's copy constructor.
operator = ( const int & ja )
public mp_int & operator =(const int & ja) ;
-
Assignment operator.
operator = ( const double & )
public mp_int & operator =(const double &) ;
-
Assignment operator.
operator = ( const char * )
public mp_int & operator =(const char *) ;
-
Assignment operator.
operator = ( const mp_int & ja )
public mp_int & operator =(const mp_int & ja) ;
-
Assignment operator.
operator = ( const mp_real & )
public mp_int & operator =(const mp_real &) ;
-
Assignment operator. Truncates the mp_real number.
operator = ( const mp_complex & )
public mp_int & operator =(const mp_complex &) ;
-
Assignment operator. Gets the real part of the mp_complex number.
operator ++ ( )
public mp_int operator ++() ;
-
Preincrement operator.
operator ++ ( int )
public mp_int operator ++(int) ;
-
Postincrement operator.
operator -- ( )
public mp_int operator --() ;
-
Predecrement operator.
operator -- ( int )
public mp_int operator --(int) ;
-
Postdecrement operator.
operator += ( const mp_int & ja )
public inline mp_int & operator +=(const mp_int & ja) ;
-
Calls operator+ and operator=
operator -= ( const mp_int & ja )
public inline mp_int & operator -=(const mp_int & ja) ;
-
Calls operator- and operator=
operator *= ( const mp_int & ja )
public inline mp_int & operator *=(const mp_int & ja) ;
-
Calls operator* and operator=
operator/
public inline mp_int & operator/(const mp_int & ja) ;
-
Calls operator/ and operator=
operator %= ( const mp_int & ja )
public inline mp_int & operator %=(const mp_int & ja) ;
-
Calls operator% and operator=
This documentation was generated automatically by the ccdoc tool (version 0.6).
Click here to submit a bug report or feature request.