std::complex (3) - Linux Manuals
std::complex: std::complex
NAME
Synopsis
Defined in header <complex>
template< class T > (1)
class complex;
template<> class complex<float>; (2)
template<> class complex<double>; (3)
template<> class complex<long double>; (4)
The specializations std::complex<float>, std::complex<double>, and std::complex<long double> are LiteralTypes for representing and manipulating complex_numbers.
The effect of instantiating the template complex for any other type is unspecified.
Member types
Member type Definition
value_type T
Member functions
constructor (public member function)
operator= (public member function)
real (public member function)
imag (public member function)
operator+= compound assignment of two complex numbers or a complex and a scalar
operator-= (public member function)
operator*=
operator/=
Non-member functions
operator+ (function template)
operator-
operator+ performs complex number arithmetics on two complex values or a complex and a scalar
operator- (function template)
operator*
operator/
operator== (function template)
operator!=
operator<< (function template)
operator>>
real (function template)
imag (function template)
abs(std::complex) (function template)
arg (function template)
norm (function template)
conj (function template)
proj returns the projection onto the Riemann sphere
(C++11)