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

Member Typedef Documentation

◆ _ComplexT

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

Definition at line 1353 of file complex.

◆ value_type [1/2]

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

Value typedef.

Definition at line 136 of file complex.

◆ value_type [2/2]

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

Definition at line 1352 of file complex.

Constructor & Destructor Documentation

◆ complex() [1/4]

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

Definition at line 1355 of file complex.

◆ complex() [2/4]

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

Definition at line 1357 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 140 of file complex.

◆ complex() [4/4]

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

Converting constructor.

Definition at line 153 of file complex.

Member Function Documentation

◆ __attribute() [1/4]

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

Definition at line 163 of file complex.

◆ __attribute() [2/4]

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

Definition at line 1388 of file complex.

◆ __attribute() [3/4]

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

Definition at line 159 of file complex.

◆ __attribute() [4/4]

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

Definition at line 1384 of file complex.

◆ __rep() [1/2]

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

Definition at line 239 of file complex.

◆ __rep() [2/2]

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

Definition at line 1497 of file complex.

◆ imag() [1/2]

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

Definition at line 190 of file complex.

◆ imag() [2/2]

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

Definition at line 1411 of file complex.

◆ operator*=() [1/4]

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

Definition at line 1481 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 234 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 214 of file complex.

◆ operator*=() [4/4]

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

Definition at line 1435 of file complex.

◆ operator+=() [1/4]

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

Definition at line 1465 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 228 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 198 of file complex.

◆ operator+=() [4/4]

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

Definition at line 1421 of file complex.

◆ operator-=() [1/4]

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

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

◆ operator-=() [4/4]

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

Definition at line 1428 of file complex.

◆ operator/=() [1/4]

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

Definition at line 1490 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 237 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 216 of file complex.

◆ operator/=() [4/4]

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

Definition at line 1442 of file complex.

◆ operator=() [1/4]

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

Definition at line 1456 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 225 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 193 of file complex.

◆ operator=() [4/4]

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

Definition at line 1414 of file complex.

◆ real() [1/2]

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

Definition at line 187 of file complex.

◆ real() [2/2]

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

Definition at line 1408 of file complex.


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