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

Public Types

typedef double _Ty
 
typedef complex< _Ty_Myt
 
- Public Types inherited from _Complex_base< double, _Dcomplex_value >
typedef _Ctraits< double > _Myctraits
 
typedef _Complex_base< double, _Dcomplex_value_Myt
 
typedef double value_type
 

Public Member Functions

constexpr complex (const complex< float > &)
 
constexpr complex (const complex< long double > &)
 
constexpr complex (const _Ty &_Realval=0, const _Ty &_Imagval=0)
 
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< double, _Dcomplex_value >
constexpr _Complex_base (const double &_Realval, const double &_Imagval)
 

Member Typedef Documentation

typedef complex<_Ty> complex< double >::_Myt
typedef double complex< double >::_Ty

Constructor & Destructor Documentation

constexpr complex< double >::complex ( const complex< float > &  _Right)
inline
1103  (_Ty)_Right.real(), (_Ty)_Right.imag())
1104  { // construct complex<double> from complex<float>
1105  }
double _Ty
Definition: complex:845
constexpr complex< double >::complex ( const complex< long double > &  _Right)
inlineexplicit
1110  (_Ty)_Right.real(), (_Ty)_Right.imag())
1111  { // construct complex<double> from complex<long double>
1112  }
double _Ty
Definition: complex:845
constexpr complex< double >::complex ( const _Ty _Realval = 0,
const _Ty _Imagval = 0 
)
inline
855  : _Complex_base<double, _Dcomplex_value>(_Realval, _Imagval)
856  { // construct from double components
857  }
constexpr complex< double >::complex ( const _Dcomplex_value _Right)
inline
861  _Right._Val[_IM])
862  { // construct from double complex value
863  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
constexpr const _Ty &() _Right
Definition: algorithm:3723
constexpr complex< double >::complex ( const _Lcomplex_value _Right)
inline
866  : _Complex_base<double, _Dcomplex_value>(static_cast<double>(_Right._Val[_RE]),
867  static_cast<double>(_Right._Val[_IM]))
868  { // construct from long double complex value
869  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
constexpr const _Ty &() _Right
Definition: algorithm:3723

Member Function Documentation

_Myt& complex< double >::operator*= ( const _Ty _Right)
inline
891  { // multiply by real
892  _Val[_RE] = _Val[_RE] * _Right;
893  _Val[_IM] = _Val[_IM] * _Right;
894  return (*this);
895  }
#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< double >::operator*= ( const _Myt _Right)
inline
917  { // multiply by other complex
918  this->_Mul(_Right);
919  return (*this);
920  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< double >::operator*= ( const complex< _Other > &  _Right)
inline
952  { // multiply by other complex
953  this->_Mul(_Right);
954  return (*this);
955  }
_Myt& complex< double >::operator+= ( const _Ty _Right)
inline
879  { // add real
880  _Val[_RE] = _Val[_RE] + _Right;
881  return (*this);
882  }
#define _RE
Definition: complex:37
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
_Myt& complex< double >::operator+= ( const _Myt _Right)
inline
905  { // add other complex
906  this->_Add(_Right);
907  return (*this);
908  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< double >::operator+= ( const complex< _Other > &  _Right)
inline
938  { // add other complex
939  this->_Add(_Right);
940  return (*this);
941  }
_Myt& complex< double >::operator-= ( const _Ty _Right)
inline
885  { // subtract real
886  _Val[_RE] = _Val[_RE] - _Right;
887  return (*this);
888  }
#define _RE
Definition: complex:37
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
_Myt& complex< double >::operator-= ( const _Myt _Right)
inline
911  { // subtract other complex
912  this->_Sub(_Right);
913  return (*this);
914  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< double >::operator-= ( const complex< _Other > &  _Right)
inline
945  { // subtract other complex
946  this->_Sub(_Right);
947  return (*this);
948  }
_Myt& complex< double >::operator/= ( const _Ty _Right)
inline
898  { // divide by real
899  _Val[_RE] = _Val[_RE] / _Right;
900  _Val[_IM] = _Val[_IM] / _Right;
901  return (*this);
902  }
#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< double >::operator/= ( const _Myt _Right)
inline
923  { // divide by other complex
924  this->_Div(_Right);
925  return (*this);
926  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< double >::operator/= ( const complex< _Other > &  _Right)
inline
959  { // divide by other complex
960  this->_Div(_Right);
961  return (*this);
962  }
complex<_Ty>& complex< double >::operator= ( const _Ty _Right)
inline
872  { // assign real
873  _Val[_RE] = _Right;
874  _Val[_IM] = 0;
875  return (*this);
876  }
#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< double >::operator= ( const complex< _Other > &  _Right)
inline
930  { // assign another complex
931  _Val[_RE] = (_Ty)_Right._Val[_RE];
932  _Val[_IM] = (_Ty)_Right._Val[_IM];
933  return (*this);
934  }
_Ty _Val[2]
Definition: complex:582
#define _RE
Definition: complex:37
double _Ty
Definition: complex:845
#define _IM
Definition: complex:38
_FwdIt const _Ty _Val
Definition: algorithm:1938

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