Public Types | |
| typedef Type | value_type |
| Value typedef. | |
Public Member Functions | |
| complex (const Type &=Type(), const Type &=Type()) | |
| Unspecified parameters default to 0. | |
| template<typename Up> | |
| complex (const complex< Up > &) | |
| Copy constructor. | |
| Type & | real () |
| Return real part of complex number. | |
| const Type & | real () const |
| Return real part of complex number. | |
| Type & | imag () |
| Return imaginary part of complex number. | |
| const Type & | imag () const |
| Return imaginary part of complex number. | |
| complex< Type > & | operator= (const Type &) |
| Assign this complex number to scalar t. | |
| complex< Type > & | operator+= (const Type &) |
| Add t to this complex number. | |
| complex< Type > & | operator-= (const Type &) |
| Subtract t from this complex number. | |
| complex< Type > & | operator *= (const Type &) |
| Multiply this complex number by t. | |
| complex< Type > & | operator/= (const Type &) |
| Divide this complex number by t. | |
| template<typename Up> | |
| complex< Type > & | operator= (const complex< Up > &) |
| Assign this complex number to complex z. | |
| template<typename Up> | |
| complex< Type > & | operator+= (const complex< Up > &) |
| Add z to this complex number. | |
| template<typename Up> | |
| complex< Type > & | operator-= (const complex< Up > &) |
| Subtract z from this complex number. | |
| template<typename Up> | |
| complex< Type > & | operator *= (const complex< Up > &) |
| Multiply this complex number by z. | |
| template<typename Up> | |
| complex< Type > & | operator/= (const complex< Up > &) |
| Divide this complex number by z. | |
Specializations for float, double, and long double are part of the library. Results with any other type are not guaranteed.
| Tp | Type of real and imaginary values. |
Definition at line 116 of file complex.
|
|||||
|
Value typedef.
|
|
||||||||||||||||
|
Unspecified parameters default to 0.
|
|
||||||||||||||
|
Copy constructor.
|
|
|||||||||
|
Return imaginary part of complex number.
|
|
|||||||||
|
Return imaginary part of complex number.
Definition at line 186 of file complex. Referenced by std::abs(), std::arg(), std::conj(), std::cos(), std::cosh(), std::exp(), std::complex< Type >::operator *=(), std::operator!=(), std::complex< Type >::operator+=(), std::operator-(), std::complex< Type >::operator-=(), std::complex< Type >::operator/=(), std::complex< Type >::operator=(), std::operator==(), std::pow(), std::sin(), std::sinh(), and std::sqrt(). |
|
||||||||||||||
|
Multiply this complex number by z.
Definition at line 287 of file complex. References std::complex< Type >::imag(), and std::complex< Type >::real(). |
|
||||||||||
|
Multiply this complex number by t.
|
|
||||||||||||||
|
Add z to this complex number.
Definition at line 264 of file complex. References std::complex< Type >::imag(), and std::complex< Type >::real(). |
|
||||||||||
|
Add t to this complex number.
|
|
||||||||||||||
|
Subtract z from this complex number.
Definition at line 275 of file complex. References std::complex< Type >::imag(), and std::complex< Type >::real(). |
|
||||||||||
|
Subtract t from this complex number.
|
|
||||||||||||||
|
Divide this complex number by z.
Definition at line 300 of file complex. References std::complex< Type >::imag(), std::norm(), and std::complex< Type >::real(). |
|
||||||||||
|
Divide this complex number by t.
|
|
||||||||||||||
|
Assign this complex number to complex z.
Definition at line 253 of file complex. References std::complex< Type >::imag(), and std::complex< Type >::real(). |
|
||||||||||
|
Assign this complex number to scalar t.
|
|
|||||||||
|
Return real part of complex number.
|
|
|||||||||
|
Return real part of complex number.
Definition at line 178 of file complex. Referenced by std::abs(), std::arg(), std::conj(), std::cos(), std::cosh(), std::exp(), std::complex< Type >::operator *=(), std::operator!=(), std::complex< Type >::operator+=(), std::operator-(), std::complex< Type >::operator-=(), std::complex< Type >::operator/=(), std::complex< Type >::operator=(), std::operator==(), std::pow(), std::sin(), std::sinh(), and std::sqrt(). |
1.4.2