![]() |
gmp_complex numbers based on More...
#include <mpr_complex.h>
Public Member Functions | |
gmp_complex (const gmp_float re=0.0, const gmp_float im=0.0) | |
gmp_complex (const mprfloat re, const mprfloat im=0.0) | |
gmp_complex (const long re, const long im) | |
gmp_complex (const gmp_complex &v) | |
~gmp_complex () | |
gmp_complex & | neg () |
gmp_complex & | operator+= (const gmp_complex &a) |
gmp_complex & | operator-= (const gmp_complex &a) |
gmp_complex & | operator*= (const gmp_complex &a) |
gmp_complex & | operator/= (const gmp_complex &a) |
gmp_complex & | operator= (const gmp_complex &a) |
gmp_complex & | operator= (const gmp_float &f) |
gmp_float | real () const |
gmp_float | imag () const |
void | real (gmp_float val) |
void | imag (gmp_float val) |
bool | isZero () |
void | SmallToZero () |
Private Attributes | |
gmp_float | r |
gmp_float | i |
Friends | |
gmp_complex | operator+ (const gmp_complex &a, const gmp_complex &b) |
gmp_complex | operator- (const gmp_complex &a, const gmp_complex &b) |
gmp_complex | operator* (const gmp_complex &a, const gmp_complex &b) |
gmp_complex | operator/ (const gmp_complex &a, const gmp_complex &b) |
gmp_complex | operator+ (const gmp_complex &a, const gmp_float b_d) |
gmp_complex | operator- (const gmp_complex &a, const gmp_float b_d) |
gmp_complex | operator* (const gmp_complex &a, const gmp_float b_d) |
gmp_complex | operator/ (const gmp_complex &a, const gmp_float b_d) |
bool | operator== (const gmp_complex &a, const gmp_complex &b) |
bool | operator> (const gmp_complex &a, const gmp_complex &b) |
bool | operator< (const gmp_complex &a, const gmp_complex &b) |
bool | operator>= (const gmp_complex &a, const gmp_complex &b) |
bool | operator<= (const gmp_complex &a, const gmp_complex &b) |
gmp_complex numbers based on
Definition at line 178 of file mpr_complex.h.
Definition at line 184 of file mpr_complex.h.
Definition at line 189 of file mpr_complex.h.
Definition at line 194 of file mpr_complex.h.
|
inline |
Definition at line 199 of file mpr_complex.h.
|
inline |
Definition at line 204 of file mpr_complex.h.
|
inline |
Definition at line 235 of file mpr_complex.h.
|
inline |
Definition at line 238 of file mpr_complex.h.
|
inline |
Definition at line 241 of file mpr_complex.h.
gmp_complex & gmp_complex::neg | ( | ) |
Definition at line 661 of file mpr_complex.cc.
gmp_complex & gmp_complex::operator*= | ( | const gmp_complex & | a | ) |
Definition at line 654 of file mpr_complex.cc.
gmp_complex & gmp_complex::operator+= | ( | const gmp_complex & | a | ) |
Definition at line 642 of file mpr_complex.cc.
gmp_complex & gmp_complex::operator-= | ( | const gmp_complex & | a | ) |
Definition at line 648 of file mpr_complex.cc.
gmp_complex & gmp_complex::operator/= | ( | const gmp_complex & | a | ) |
Definition at line 667 of file mpr_complex.cc.
|
inline |
Definition at line 288 of file mpr_complex.h.
|
inline |
Definition at line 296 of file mpr_complex.h.
|
inline |
Definition at line 234 of file mpr_complex.h.
|
inline |
Definition at line 237 of file mpr_complex.h.
void gmp_complex::SmallToZero | ( | ) |
Definition at line 785 of file mpr_complex.cc.
|
friend |
Definition at line 628 of file mpr_complex.cc.
|
friend |
Definition at line 255 of file mpr_complex.h.
|
friend |
Definition at line 620 of file mpr_complex.cc.
|
friend |
Definition at line 247 of file mpr_complex.h.
|
friend |
Definition at line 624 of file mpr_complex.cc.
|
friend |
Definition at line 251 of file mpr_complex.h.
|
friend |
Definition at line 633 of file mpr_complex.cc.
|
friend |
Definition at line 259 of file mpr_complex.h.
|
friend |
Definition at line 273 of file mpr_complex.h.
|
friend |
Definition at line 281 of file mpr_complex.h.
|
friend |
Definition at line 265 of file mpr_complex.h.
|
friend |
Definition at line 269 of file mpr_complex.h.
|
friend |
Definition at line 277 of file mpr_complex.h.
|
private |
Definition at line 181 of file mpr_complex.h.
|
private |
Definition at line 181 of file mpr_complex.h.