My Project
0.0.16
QUCS Mapping
|
#include <cmplx.h>
Public Member Functions | |
cmplx (nr_double_t real, nr_double_t imag=0.0) | |
Constructor from a real imaginary pair. | |
cmplx () | |
Default constructor. | |
cmplx (const cmplx &) | |
Copy constructor. | |
nr_double_t | arg (void) |
Compute argument of complex number. | |
nr_double_t | real (void) |
Real part of complex number. | |
nr_double_t | imag (void) |
Imaginary part of complex number. | |
cmplx | conj (void) |
Conjugate of complex number. | |
nr_double_t | abs (void) |
Compute complex modulus. | |
nr_double_t | norm (void) |
Compute euclidian norm of complex number. | |
cmplx & | operator= (const cmplx) |
Assign. | |
cmplx & | operator= (const nr_double_t) |
Assign with real. | |
cmplx & | operator+= (const cmplx) |
+= operator for complex | |
cmplx & | operator+= (const nr_double_t) |
+= operator for real | |
cmplx & | operator-= (const cmplx) |
-= operator for complex | |
cmplx & | operator-= (const nr_double_t) |
-= operator for real | |
cmplx & | operator*= (const cmplx) |
Multiply and assign. | |
cmplx & | operator*= (const nr_double_t) |
*= operator for complex | |
cmplx & | operator/= (const cmplx) |
Divide and assign. | |
cmplx & | operator/= (const nr_double_t) |
/= operator for complex | |
cmplx | operator+ () |
Unary +. | |
cmplx | operator- () |
Unary -. | |
void | print (void) |
Friends | |
nr_double_t | arg (const cmplx) |
Compute argument of complex number. | |
nr_double_t | real (const cmplx) |
Real part of complex number. | |
nr_double_t | imag (const cmplx) |
Imaginary part of complex number. | |
cmplx | conj (const cmplx) |
Conjugate of complex number. | |
nr_double_t | abs (const cmplx) |
Compute complex modulus. | |
cmplx | operator+ (const cmplx, const cmplx) |
Addition of two complex. | |
cmplx | operator+ (const cmplx, const nr_double_t) |
Addition of complex and real. | |
cmplx | operator+ (const nr_double_t, const cmplx) |
Addition of real and complex. | |
cmplx | operator- (const cmplx, const cmplx) |
Substraction of two complex. | |
cmplx | operator- (const cmplx, const nr_double_t) |
Substraction of complex and real. | |
cmplx | operator- (const nr_double_t, const cmplx) |
Substraction of real and complex. | |
cmplx | operator* (const cmplx, const cmplx) |
Multiplication of two complex. | |
cmplx | operator* (const cmplx, const nr_double_t) |
Multiplication of complex and real. | |
cmplx | operator* (const nr_double_t, const cmplx) |
Multiplication of real and complex. | |
cmplx | operator/ (const cmplx, const cmplx) |
Divide a complex by a complex. | |
cmplx | operator/ (const cmplx, const nr_double_t) |
Divide a complex by a double. | |
cmplx | operator/ (const nr_double_t, const cmplx) |
Divide a real by a complex. | |
cmplx::cmplx | ( | nr_double_t | real, |
nr_double_t | imag = 0.0 |
||
) |
cmplx::cmplx | ( | ) |
cmplx::cmplx | ( | const cmplx & | z | ) |
nr_double_t cmplx::abs | ( | void | ) |
nr_double_t cmplx::arg | ( | void | ) |
cmplx cmplx::conj | ( | void | ) |
nr_double_t cmplx::imag | ( | void | ) |
nr_double_t cmplx::norm | ( | void | ) |
cmplx & cmplx::operator*= | ( | const nr_double_t | r2 | ) |
cmplx cmplx::operator+ | ( | ) |
cmplx & cmplx::operator+= | ( | const nr_double_t | r2 | ) |
cmplx cmplx::operator- | ( | ) |
cmplx & cmplx::operator-= | ( | const nr_double_t | r2 | ) |
cmplx & cmplx::operator/= | ( | const nr_double_t | r2 | ) |
cmplx & cmplx::operator= | ( | const nr_double_t | x | ) |
void cmplx::print | ( | void | ) |
nr_double_t cmplx::real | ( | void | ) |
|
friend |
|
friend |
Compute argument of complex number.
[in] | z | Complex number |
lack of nr_double_t cmplx::arg(void)
Why not inline
|
friend |
|
friend |