libstdc++
std::complex< float > Class Reference

#include <complex>

Public Types

typedef __complex__ float _ComplexT
 
typedef float value_type
 
typedef float value_type
 

Public Member Functions

constexpr complex (_ComplexT __z)
 
constexpr complex (const complex &)=default
 
constexpr complex (const complex &)=default
 
constexpr complex (const complex< _Up > &__z)
 
constexpr complex (const complex< double > &)
 
constexpr complex (const complex< long double > &)
 
constexpr complex (const float &__r=float(), const float &__i=float())
 
constexpr complex (float __r=0.0f, float __i=0.0f)
 
 __attribute ((__abi_tag__("cxx11"))) const expr float imag() const
 
 __attribute ((__abi_tag__("cxx11"))) const expr float imag() const
 
 __attribute ((__abi_tag__("cxx11"))) const expr float real() const
 
 __attribute ((__abi_tag__("cxx11"))) const expr float real() const
 
constexpr complex __rep () const
 
constexpr _ComplexT __rep () const
 
constexpr void imag (float __val)
 
constexpr void imag (float __val)
 
template<class _Tp>
constexpr complexoperator*= (const complex< _Tp > &__z)
 
constexpr complex< float > & operator*= (const complex< _Up > &)
 
constexpr complex< float > & operator*= (const float &)
 
constexpr complexoperator*= (float __f)
 
template<typename _Tp>
constexpr complexoperator+= (const complex< _Tp > &__z)
 
constexpr complex< float > & operator+= (const complex< _Up > &)
 
constexpr complex< float > & operator+= (const float &__t)
 
constexpr complexoperator+= (float __f)
 
template<class _Tp>
constexpr complexoperator-= (const complex< _Tp > &__z)
 
constexpr complex< float > & operator-= (const complex< _Up > &)
 
constexpr complex< float > & operator-= (const float &__t)
 
constexpr complexoperator-= (float __f)
 
template<class _Tp>
constexpr complexoperator/= (const complex< _Tp > &__z)
 
constexpr complex< float > & operator/= (const complex< _Up > &)
 
constexpr complex< float > & operator/= (const float &)
 
constexpr complexoperator/= (float __f)
 
constexpr complexoperator= (const complex &)=default
 
constexpr complexoperator= (const complex &)=default
 
template<typename _Tp>
constexpr complexoperator= (const complex< _Tp > &__z)
 
constexpr complex< float > & operator= (const complex< _Up > &)
 
constexpr complex< float > & operator= (const float &)
 
constexpr complexoperator= (float __f)
 
constexpr void real (float __val)
 
constexpr void real (float __val)
 

Detailed Description

26.2.3 complex specializations complex<float> specialization

Definition at line 1354 of file complex.

Member Typedef Documentation

◆ _ComplexT

typedef __complex__ float std::complex< float >::_ComplexT

Definition at line 1358 of file complex.

◆ value_type [1/2]

typedef float std::complex< float >::value_type

Value typedef.

Definition at line 141 of file complex.

◆ value_type [2/2]

typedef float std::complex< float >::value_type

Definition at line 1357 of file complex.

Constructor & Destructor Documentation

◆ complex() [1/4]

std::complex< float >::complex ( _ComplexT __z)
inlineconstexpr

Definition at line 1360 of file complex.

◆ complex() [2/4]

std::complex< float >::complex ( float __r = 0.0f,
float __i = 0.0f )
inlineconstexpr

Definition at line 1362 of file complex.

◆ complex() [3/4]

std::complex< float >::complex ( const float & __r = _Tp(),
const float & __i = _Tp() )
inlineconstexpr

Default constructor. First parameter is x, second parameter is y. Unspecified parameters default to 0.

Definition at line 145 of file complex.

◆ complex() [4/4]

std::complex< float >::complex ( const complex< _Up > & __z)
inlineconstexpr

Converting constructor.

Definition at line 158 of file complex.

Member Function Documentation

◆ __attribute() [1/4]

std::complex< float >::__attribute ( (__abi_tag__("cxx11")) ) const
inline

Definition at line 168 of file complex.

◆ __attribute() [2/4]

std::complex< float >::__attribute ( (__abi_tag__("cxx11")) ) const
inline

Definition at line 1393 of file complex.

◆ __attribute() [3/4]

std::complex< float >::__attribute ( (__abi_tag__("cxx11")) ) const
inline

Definition at line 164 of file complex.

◆ __attribute() [4/4]

std::complex< float >::__attribute ( (__abi_tag__("cxx11")) ) const
inline

Definition at line 1389 of file complex.

◆ __rep() [1/2]

complex std::complex< float >::__rep ( ) const
inlineconstexpr

Definition at line 244 of file complex.

◆ __rep() [2/2]

_ComplexT std::complex< float >::__rep ( ) const
inlineconstexpr

Definition at line 1502 of file complex.

◆ imag() [1/2]

void std::complex< float >::imag ( float __val)
inlineconstexpr

Definition at line 195 of file complex.

◆ imag() [2/2]

void std::complex< float >::imag ( float __val)
inlineconstexpr

Definition at line 1416 of file complex.

◆ operator*=() [1/4]

template<class _Tp>
complex & std::complex< float >::operator*= ( const complex< _Tp > & __z)
inlineconstexpr

Definition at line 1486 of file complex.

◆ operator*=() [2/4]

complex< float > & std::complex< float >::operator*= ( const complex< _Up > & __z)
constexpr

Multiply this complex number by another.

Definition at line 239 of file complex.

◆ operator*=() [3/4]

complex< float > & std::complex< float >::operator*= ( const float & __t)
constexpr

Multiply this complex number by a scalar.

Definition at line 219 of file complex.

◆ operator*=() [4/4]

complex & std::complex< float >::operator*= ( float __f)
inlineconstexpr

Definition at line 1440 of file complex.

◆ operator+=() [1/4]

template<typename _Tp>
complex & std::complex< float >::operator+= ( const complex< _Tp > & __z)
inlineconstexpr

Definition at line 1470 of file complex.

◆ operator+=() [2/4]

complex< float > & std::complex< float >::operator+= ( const complex< _Up > & __z)
constexpr

Add another complex number to this one.

Definition at line 233 of file complex.

◆ operator+=() [3/4]

complex< float > & std::complex< float >::operator+= ( const float & __t)
inlineconstexpr

Add a scalar to this complex number.

Definition at line 203 of file complex.

◆ operator+=() [4/4]

complex & std::complex< float >::operator+= ( float __f)
inlineconstexpr

Definition at line 1426 of file complex.

◆ operator-=() [1/4]

template<class _Tp>
complex & std::complex< float >::operator-= ( const complex< _Tp > & __z)
inlineconstexpr

Definition at line 1478 of file complex.

◆ operator-=() [2/4]

complex< float > & std::complex< float >::operator-= ( const complex< _Up > & __z)
constexpr

Subtract another complex number from this one.

Definition at line 236 of file complex.

◆ operator-=() [3/4]

complex< float > & std::complex< float >::operator-= ( const float & __t)
inlineconstexpr

Subtract a scalar from this complex number.

Definition at line 212 of file complex.

◆ operator-=() [4/4]

complex & std::complex< float >::operator-= ( float __f)
inlineconstexpr

Definition at line 1433 of file complex.

◆ operator/=() [1/4]

template<class _Tp>
complex & std::complex< float >::operator/= ( const complex< _Tp > & __z)
inlineconstexpr

Definition at line 1495 of file complex.

◆ operator/=() [2/4]

complex< float > & std::complex< float >::operator/= ( const complex< _Up > & __z)
constexpr

Divide this complex number by another.

Definition at line 242 of file complex.

◆ operator/=() [3/4]

complex< float > & std::complex< float >::operator/= ( const float & __t)
constexpr

Divide this complex number by a scalar.

Definition at line 221 of file complex.

◆ operator/=() [4/4]

complex & std::complex< float >::operator/= ( float __f)
inlineconstexpr

Definition at line 1447 of file complex.

◆ operator=() [1/4]

template<typename _Tp>
complex & std::complex< float >::operator= ( const complex< _Tp > & __z)
inlineconstexpr

Definition at line 1461 of file complex.

◆ operator=() [2/4]

complex< float > & std::complex< float >::operator= ( const complex< _Up > & __z)
constexpr

Assign another complex number to this one.

Definition at line 230 of file complex.

◆ operator=() [3/4]

complex< float > & std::complex< float >::operator= ( const float & __t)
constexpr

Assign a scalar to this complex number.

Definition at line 198 of file complex.

◆ operator=() [4/4]

complex & std::complex< float >::operator= ( float __f)
inlineconstexpr

Definition at line 1419 of file complex.

◆ real() [1/2]

void std::complex< float >::real ( float __val)
inlineconstexpr

Definition at line 192 of file complex.

◆ real() [2/2]

void std::complex< float >::real ( float __val)
inlineconstexpr

Definition at line 1413 of file complex.


The documentation for this class was generated from the following file: