- class mp_real
- extends mp as public
-
This class represents multi-precision real.
In order to use the library, this is the only header file
that needs to be included.
- Author:
- Herman Harjono
- Version:
- Sep 21, 1998.
- Source:
- ../../include/mpreal.h:18
mp_real
- [public] Copy constructor. Inherits the parameter's precision. Calls mp's copy constructor.
mp_real
- [public] Creates a mp_real from mp_int. Inherits the mp_int object's precision. Calls mp's copy constructor.
mp_real
- [public] Creates a mp_real from char*.
mp_real
- [public] Creates a mp_real from float / double.
mp_real
- [public] Creates a mp_real from int.
mp_real
- [public] Creates a mp_real (initialized to zero).
mp_real
- [public] Creates a mp_real (initialized to zero).
operator *= ( const mp_real & ja )
- [public] Calls operator* and operator=
operator ++ ( )
- [public] Preincrement operator.
operator ++ ( int )
- [public] Postincrement operator.
operator += ( const mp_real & ja )
- [public] Calls operator+ and operator=
operator -- ( )
- [public] Predecrement operator.
operator -- ( int )
- [public] Postdecrement operator.
operator -= ( const mp_real & ja )
- [public] Calls operator- and operator=
operator = ( const char * )
- [public] Assignment operator.
operator = ( const double & )
- [public] Assignment operator.
operator = ( const int & )
- [public] Assignment operator.
operator = ( const mp_complex & )
- [public] Assignment operator.
operator = ( const mp_int & )
- [public] Assignment operator.
operator = ( const mp_real & )
- [public] Assignment operator.
operator/
- [public] Calls operator/ and operator=
mp_real
public mp_real mp_real(const mpsize & size) ;
-
Creates a mp_real (initialized to zero).
-
- Parameters:
-
size | The precision level of the object, in words.
|
mp_real
public mp_real mp_real(const mpprecision & precision = mpipl) ;
-
Creates a mp_real (initialized to zero).
-
- Parameters:
-
precision | The precision level of the object, in digits.
|
- See Also:
-
mp::mpipl
mp_real
public mp_real mp_real(int ia,const mpprecision & precision = mpipl) ;
-
Creates a mp_real from int.
-
- Parameters:
-
precision | The precision level of the object, in digits.
|
- See Also:
-
mp::mpipl
mp_real
public mp_real mp_real(double da,const mpprecision & precision = mpipl) ;
-
Creates a mp_real from float / double.
-
- Parameters:
-
precision | The precision level of the object, in digits.
|
- See Also:
-
mp::mpipl
mp_real
public mp_real mp_real(char * ca,const mpprecision & precision = mpipl) ;
-
Creates a mp_real 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_real
public mp_real mp_real(const mp_int & in) ;
-
Creates a mp_real from mp_int. Inherits the mp_int object's precision.
Calls mp's copy constructor.
mp_real
public mp_real mp_real(const mp_real & in) ;
-
Copy constructor. Inherits the parameter's precision.
Calls mp's copy constructor.
operator = ( const int & )
public mp_real & operator =(const int &) ;
-
Assignment operator.
operator = ( const double & )
public mp_real & operator =(const double &) ;
-
Assignment operator.
operator = ( const mp_real & )
public mp_real & operator =(const mp_real &) ;
-
Assignment operator.
operator = ( const mp_int & )
public mp_real & operator =(const mp_int &) ;
-
Assignment operator.
operator = ( const mp_complex & )
public mp_real & operator =(const mp_complex &) ;
-
Assignment operator.
operator = ( const char * )
public mp_real & operator =(const char *) ;
-
Assignment operator.
operator ++ ( )
public mp_real operator ++() ;
-
Preincrement operator.
operator ++ ( int )
public mp_real operator ++(int) ;
-
Postincrement operator.
operator -- ( )
public mp_real operator --() ;
-
Predecrement operator.
operator -- ( int )
public mp_real operator --(int) ;
-
Postdecrement operator.
operator += ( const mp_real & ja )
public inline mp_real & operator +=(const mp_real & ja) ;
-
Calls operator+ and operator=
operator -= ( const mp_real & ja )
public inline mp_real & operator -=(const mp_real & ja) ;
-
Calls operator- and operator=
operator *= ( const mp_real & ja )
public inline mp_real & operator *=(const mp_real & ja) ;
-
Calls operator* and operator=
operator/
public inline mp_real & operator/(const mp_real & 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.