gmp_complex numbers based on
More...
#include <mpr_complex.h>
|
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.
◆ gmp_complex() [1/4]
◆ gmp_complex() [2/4]
◆ gmp_complex() [3/4]
gmp_complex::gmp_complex |
( |
const long |
re, |
|
|
const long |
im |
|
) |
| |
|
inline |
◆ gmp_complex() [4/4]
Definition at line 199 of file mpr_complex.h.
200 {
203 }
const Variable & v
< [in] a sqrfree bivariate poly
◆ ~gmp_complex()
gmp_complex::~gmp_complex |
( |
| ) |
|
|
inline |
◆ imag() [1/2]
◆ imag() [2/2]
◆ isZero()
bool gmp_complex::isZero |
( |
| ) |
|
|
inline |
◆ neg()
◆ operator*=()
◆ operator+=()
◆ operator-=()
◆ operator/=()
Definition at line 666 of file mpr_complex.cc.
667{
669 r = (
r *
b.r +
i *
b.i) / d;
670 i = (
i *
b.r -
r *
b.i) / d;
671 return *this;
672}
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ real() [1/2]
◆ real() [2/2]
◆ SmallToZero()
void gmp_complex::SmallToZero |
( |
| ) |
|
Definition at line 784 of file mpr_complex.cc.
785{
791 mpf_set_prec(*ar.
_mpfp(), 32);
792 mpf_set_prec(*ai.
_mpfp(), 32);
793 if (ar > ai)
794 {
797 }
798 else
799 {
802 }
803}
STATIC_VAR gmp_float * gmpRel
◆ operator* [1/2]
Definition at line 627 of file mpr_complex.cc.
628{
630 a.
r *
b.i + a.
i *
b.r);
631}
gmp_complex numbers based on
◆ operator* [2/2]
◆ operator+ [1/2]
◆ operator+ [2/2]
◆ operator- [1/2]
◆ operator- [2/2]
◆ operator/ [1/2]
◆ operator/ [2/2]
◆ operator<
◆ operator<=
◆ operator==
◆ operator>
◆ operator>=
The documentation for this class was generated from the following files: