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 1436 of file complex.

Member Typedef Documentation

◆ _ComplexT

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

Definition at line 1440 of file complex.

◆ value_type [1/2]

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

Value typedef.

Definition at line 160 of file complex.

◆ value_type [2/2]

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

Definition at line 1439 of file complex.

Constructor & Destructor Documentation

◆ complex() [1/4]

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

Definition at line 1442 of file complex.

◆ complex() [2/4]

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

Definition at line 1444 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 164 of file complex.

◆ complex() [4/4]

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

Converting constructor.

Definition at line 177 of file complex.

Member Function Documentation

◆ __attribute() [1/4]

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

Definition at line 187 of file complex.

◆ __attribute() [2/4]

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

Definition at line 1475 of file complex.

◆ __attribute() [3/4]

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

Definition at line 183 of file complex.

◆ __attribute() [4/4]

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

Definition at line 1471 of file complex.

◆ __rep() [1/2]

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

Definition at line 263 of file complex.

◆ __rep() [2/2]

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

Definition at line 1584 of file complex.

◆ imag() [1/2]

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

Definition at line 214 of file complex.

◆ imag() [2/2]

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

Definition at line 1498 of file complex.

◆ operator*=() [1/4]

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

Definition at line 1568 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 258 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 238 of file complex.

◆ operator*=() [4/4]

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

Definition at line 1522 of file complex.

◆ operator+=() [1/4]

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

Definition at line 1552 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 252 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 222 of file complex.

◆ operator+=() [4/4]

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

Definition at line 1508 of file complex.

◆ operator-=() [1/4]

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

Definition at line 1560 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 255 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 231 of file complex.

◆ operator-=() [4/4]

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

Definition at line 1515 of file complex.

◆ operator/=() [1/4]

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

Definition at line 1577 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 261 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 240 of file complex.

◆ operator/=() [4/4]

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

Definition at line 1529 of file complex.

◆ operator=() [1/4]

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

Definition at line 1543 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 249 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 217 of file complex.

◆ operator=() [4/4]

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

Definition at line 1501 of file complex.

◆ real() [1/2]

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

Definition at line 211 of file complex.

◆ real() [2/2]

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

Definition at line 1495 of file complex.


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