Espacios de nombres
Variantes

std::complex::complex

De cppreference.com
 
 
 
std::complex
Funciones miembro
Funciones no miembro
Funciones exponenciales
Funciones de potencias
Funciones trigonométricas
(C++11)
(C++11)
(C++11)
Funciones hiperbólicas
(C++11)
(C++11)
(C++11)
 
<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody>
Plantilla primaria complex<T>
complex( const T& re = T(), const T& im = T() );
(1) (hasta C++14)
constexpr complex( const T& re = T(), const T& im = T() );
(1) (desde C++14)
complex( const complex& other );
(2) (hasta C++14)
constexpr complex( const complex& other );
(2) (desde C++14)
template< class X > complex( const complex<X>& other);
(3) (hasta C++14)
template< class X > constexpr complex( const complex<X>& other);
(3) (desde C++14)
Especialización complex<float>
complex(float re = 0.0f, float im = 0.0f);
(1) (hasta C++11)
constexpr complex(float re = 0.0f, float im = 0.0f);
(1) (desde C++11)
explicit complex(const complex<double>& other); explicit complex(const complex<long double>& other);
(3) (hasta C++11)
explicit constexpr complex(const complex<double>& other); explicit constexpr complex(const complex<long double>& other);
(3) (desde C++11)
Especialización complex<double>
complex(double re = 0.0, double im = 0.0);
(1) (hasta C++11)
constexpr complex(double re = 0.0, double im = 0.0);
(1) (desde C++11)
complex(const complex<float>& other); explicit complex(const complex<long double>& other);
(3) (hasta C++11)
constexpr complex(const complex<float>& other); explicit constexpr complex(const complex<long double>& other);
(3) (desde C++11)
Especialización complex<long double>
complex(long double re = 0.0L, long double im = 0.0L);
(1) (hasta C++11)
constexpr complex(long double re = 0.0L, long double im = 0.0L);
(1) (desde C++11)
complex(const complex<float>& other); complex(const complex<double>& other);
(3) (hasta C++11)
constexpr complex(const complex<float>& other); constexpr complex(const complex<double>& other);
(3) (desde C++11)

Construye el objeto std::complex.

1) Construye el número complejo de partes real e imaginaria.
2) Constructor de copia. Construye el objeto con una copia del contenido de other. El constructor de copias está implícito en las especializaciones estándar.
3) Constructor de conversión. Construye el objeto a partir de un número complejo de diferente tipo.

Parámetros

re - La parte real.
im - La parte imaginaria.
other - Otro objeto std::complex a usar como fuente.

Véase también

Asigna el contenido.
(función miembro pública) [editar]
Un literal std::complex que representa un número imaginario puro.
(función) [editar]