STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
complex< float > Class Template Reference
Inheritance diagram for complex< float >:
_Complex_base< float, _Fcomplex_value >

Public Types

typedef float _Ty
 
typedef complex< _Ty_Myt
 
- Public Types inherited from _Complex_base< float, _Fcomplex_value >
typedef _Ctraits< float > _Myctraits
 
typedef _Complex_base< float, _Fcomplex_value_Myt
 
typedef float value_type
 

Public Member Functions

constexpr complex (const complex< double > &)
 
constexpr complex (const complex< long double > &)
 
constexpr complex (const _Ty &_Realval=0, const _Ty &_Imagval=0)
 
constexpr complex (const _Fcomplex_value &_Right)
 
constexpr complex (const _Dcomplex_value &_Right)
 
constexpr complex (const _Lcomplex_value &_Right)
 
complex< _Ty > & operator= (const _Ty &_Right)
 
_Mytoperator+= (const _Ty &_Right)
 
_Mytoperator-= (const _Ty &_Right)
 
_Mytoperator*= (const _Ty &_Right)
 
_Mytoperator/= (const _Ty &_Right)
 
_Mytoperator+= (const _Myt &_Right)
 
_Mytoperator-= (const _Myt &_Right)
 
_Mytoperator*= (const _Myt &_Right)
 
_Mytoperator/= (const _Myt &_Right)
 
template<class _Other >
_Mytoperator= (const complex< _Other > &_Right)
 
template<class _Other >
_Mytoperator+= (const complex< _Other > &_Right)
 
template<class _Other >
_Mytoperator-= (const complex< _Other > &_Right)
 
template<class _Other >
_Mytoperator*= (const complex< _Other > &_Right)
 
template<class _Other >
_Mytoperator/= (const complex< _Other > &_Right)
 
- Public Member Functions inherited from _Complex_base< float, _Fcomplex_value >
constexpr _Complex_base (const float &_Realval, const float &_Imagval)
 

Member Typedef Documentation

typedef complex<_Ty> complex< float >::_Myt
typedef float complex< float >::_Ty

Constructor & Destructor Documentation

constexpr complex< float >::complex ( const complex< double > &  _Right)
inlineexplicit
1089  (_Ty)_Right.real(), (_Ty)_Right.imag())
1090  { // construct complex<float> from complex<double>
1091  }
float _Ty
Definition: complex:713
constexpr complex< float >::complex ( const complex< long double > &  _Right)
inlineexplicit
1096  (_Ty)_Right.real(), (_Ty)_Right.imag())
1097  { // construct complex<float> from complex<long double>
1098  }
float _Ty
Definition: complex:713
constexpr complex< float >::complex ( const _Ty _Realval = 0,
const _Ty _Imagval = 0 
)
inline
723  : _Complex_base<float, _Fcomplex_value>(_Realval, _Imagval)
724  { // construct from float components
725  }
constexpr complex< float >::complex ( const _Fcomplex_value _Right)
inline
729  _Right._Val[_IM])
730  { // construct from float complex value
731  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
constexpr const _Ty &() _Right
Definition: algorithm:3723
constexpr complex< float >::complex ( const _Dcomplex_value _Right)
inline
734  : _Complex_base<float, _Fcomplex_value>(static_cast<float>(_Right._Val[_RE]),
735  static_cast<float>(_Right._Val[_IM]))
736  { // construct from double complex value
737  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
constexpr const _Ty &() _Right
Definition: algorithm:3723
constexpr complex< float >::complex ( const _Lcomplex_value _Right)
inline
740  : _Complex_base<float, _Fcomplex_value>(static_cast<float>(_Right._Val[_RE]),
741  static_cast<float>(_Right._Val[_IM]))
742  { // construct from long double complex value
743  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
constexpr const _Ty &() _Right
Definition: algorithm:3723

Member Function Documentation

_Myt& complex< float >::operator*= ( const _Ty _Right)
inline
765  { // multiply by real
766  _Val[_RE] = _Val[_RE] * _Right;
767  _Val[_IM] = _Val[_IM] * _Right;
768  return (*this);
769  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
_Myt& complex< float >::operator*= ( const _Myt _Right)
inline
791  { // multiply by other complex
792  this->_Mul(_Right);
793  return (*this);
794  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< float >::operator*= ( const complex< _Other > &  _Right)
inline
826  { // multiply by other complex
827  this->_Mul(_Right);
828  return (*this);
829  }
_Myt& complex< float >::operator+= ( const _Ty _Right)
inline
753  { // add real
754  _Val[_RE] = _Val[_RE] + _Right;
755  return (*this);
756  }
#define _RE
Definition: complex:37
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
_Myt& complex< float >::operator+= ( const _Myt _Right)
inline
779  { // add other complex
780  this->_Add(_Right);
781  return (*this);
782  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< float >::operator+= ( const complex< _Other > &  _Right)
inline
812  { // add other complex
813  this->_Add(_Right);
814  return (*this);
815  }
_Myt& complex< float >::operator-= ( const _Ty _Right)
inline
759  { // subtract real
760  _Val[_RE] = _Val[_RE] - _Right;
761  return (*this);
762  }
#define _RE
Definition: complex:37
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
_Myt& complex< float >::operator-= ( const _Myt _Right)
inline
785  { // subtract other complex
786  this->_Sub(_Right);
787  return (*this);
788  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< float >::operator-= ( const complex< _Other > &  _Right)
inline
819  { // subtract other complex
820  this->_Sub(_Right);
821  return (*this);
822  }
_Myt& complex< float >::operator/= ( const _Ty _Right)
inline
772  { // divide by real
773  _Val[_RE] = _Val[_RE] / _Right;
774  _Val[_IM] = _Val[_IM] / _Right;
775  return (*this);
776  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
_Myt& complex< float >::operator/= ( const _Myt _Right)
inline
797  { // divide by other complex
798  this->_Div(_Right);
799  return (*this);
800  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< float >::operator/= ( const complex< _Other > &  _Right)
inline
833  { // divide by other complex
834  this->_Div(_Right);
835  return (*this);
836  }
complex<_Ty>& complex< float >::operator= ( const _Ty _Right)
inline
746  { // assign real
747  _Val[_RE] = _Right;
748  _Val[_IM] = 0;
749  return (*this);
750  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< float >::operator= ( const complex< _Other > &  _Right)
inline
804  { // assign another complex
805  _Val[_RE] = (_Ty)_Right._Val[_RE];
806  _Val[_IM] = (_Ty)_Right._Val[_IM];
807  return (*this);
808  }
_Ty _Val[2]
Definition: complex:582
#define _RE
Definition: complex:37
float _Ty
Definition: complex:713
#define _IM
Definition: complex:38
_FwdIt const _Ty _Val
Definition: algorithm:1938

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