CAPD DynSys Library
5.2.0
|
Class Complex represents complex number. More...
#include <capd/fields/Complex.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
Complex (const T &re=T(), const T &im=T()) | |
Complex (const Complex &other)=default | |
template<typename R > | |
Complex (const Complex< R > &other) | |
T | real () const |
void | real (T value) |
T | imag () const |
void | imag (T value) |
Complex & | operator+= (const T &other) |
Complex & | operator+= (const Complex &other) |
Complex & | operator-= (const T &other) |
Complex & | operator-= (const Complex &other) |
Complex & | operator*= (const T &other) |
Complex & | operator*= (const Complex &other) |
Complex & | operator/= (const T &other) |
Complex & | operator/= (const Complex &other) |
Friends | |
Complex | operator+ (const Complex &val) |
Complex | operator- (const Complex &val) |
Complex | operator+ (const Complex &a, const Complex &b) |
Complex | operator+ (const Complex &a, const T &b) |
Complex | operator+ (const T &a, const Complex &b) |
Complex | operator- (const Complex &a, const Complex &b) |
Complex | operator- (const Complex &a, const T &b) |
Complex | operator- (const T &a, const Complex &b) |
Complex | operator* (const Complex &a, const Complex &b) |
Complex | operator* (const Complex &a, const T &b) |
Complex | operator* (const T &a, const Complex &b) |
Complex | operator/ (const Complex &x, const Complex &y) |
/ More... | |
Complex | operator/ (const Complex &a, const T &b) |
Complex | operator/ (const T &a, const Complex &b) |
bool | operator== (const Complex &a, const Complex &b) |
bool | operator!= (const Complex &a, const Complex &b) |
std::ostream & | operator<< (std::ostream &out, const Complex &z) |
Class Complex represents complex number.
This is replacement for std::complex for user defined types especially intervals. For built-in floating point types it uses std::complex. It also adds TypeTraits and functions needed by vectalg algorithms (like capd::abs, capd::min).
T | type of real and imaginary part |
typedef T capd::fields::Complex< T >::value_type |
|
inline |
|
default |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |