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
1107  (_Ty)_Right.real(), (_Ty)_Right.imag())
1108  { // construct complex<double> from complex<float>
1109  }
double _Ty
Definition: complex:849
constexpr complex< double >::complex ( const complex< long double > &  _Right)
inlineexplicit
1114  (_Ty)_Right.real(), (_Ty)_Right.imag())
1115  { // construct complex<double> from complex<long double>
1116  }
double _Ty
Definition: complex:849
constexpr complex< double >::complex ( const _Ty _Realval = 0,
const _Ty _Imagval = 0 
)
inline
859  : _Complex_base<double, _Dcomplex_value>(_Realval, _Imagval)
860  { // construct from double components
861  }
constexpr complex< double >::complex ( const _Dcomplex_value _Right)
inline
865  _Right._Val[_IM])
866  { // construct from double complex value
867  }
#define _RE
Definition: complex:41
#define _IM
Definition: complex:42
constexpr const _Ty &() _Right
Definition: algorithm:3591
constexpr complex< double >::complex ( const _Lcomplex_value _Right)
inline
871  _Right._Val[_IM])
872  { // construct from long double complex value
873  }
#define _RE
Definition: complex:41
#define _IM
Definition: complex:42
constexpr const _Ty &() _Right
Definition: algorithm:3591

Member Function Documentation

_Myt& complex< double >::operator*= ( const _Ty _Right)
inline
895  { // multiply by real
896  _Val[_RE] = _Val[_RE] * _Right;
897  _Val[_IM] = _Val[_IM] * _Right;
898  return (*this);
899  }
_In_ int _Val
Definition: vcruntime_string.h:62
#define _RE
Definition: complex:41
#define _IM
Definition: complex:42
constexpr const _Ty &() _Right
Definition: algorithm:3591
_Myt& complex< double >::operator*= ( const _Myt _Right)
inline
921  { // multiply by other complex
922  this->_Mul(_Right);
923  return (*this);
924  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Other >
_Myt& complex< double >::operator*= ( const complex< _Other > &  _Right)
inline
956  { // multiply by other complex
957  this->_Mul(_Right);
958  return (*this);
959  }
_Myt& complex< double >::operator+= ( const _Ty _Right)
inline
883  { // add real
884  _Val[_RE] = _Val[_RE] + _Right;
885  return (*this);
886  }
_In_ int _Val
Definition: vcruntime_string.h:62
#define _RE
Definition: complex:41
constexpr const _Ty &() _Right
Definition: algorithm:3591
_Myt& complex< double >::operator+= ( const _Myt _Right)
inline
909  { // add other complex
910  this->_Add(_Right);
911  return (*this);
912  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Other >
_Myt& complex< double >::operator+= ( const complex< _Other > &  _Right)
inline
942  { // add other complex
943  this->_Add(_Right);
944  return (*this);
945  }
_Myt& complex< double >::operator-= ( const _Ty _Right)
inline
889  { // subtract real
890  _Val[_RE] = _Val[_RE] - _Right;
891  return (*this);
892  }
_In_ int _Val
Definition: vcruntime_string.h:62
#define _RE
Definition: complex:41
constexpr const _Ty &() _Right
Definition: algorithm:3591
_Myt& complex< double >::operator-= ( const _Myt _Right)
inline
915  { // subtract other complex
916  this->_Sub(_Right);
917  return (*this);
918  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Other >
_Myt& complex< double >::operator-= ( const complex< _Other > &  _Right)
inline
949  { // subtract other complex
950  this->_Sub(_Right);
951  return (*this);
952  }
_Myt& complex< double >::operator/= ( const _Ty _Right)
inline
902  { // divide by real
903  _Val[_RE] = _Val[_RE] / _Right;
904  _Val[_IM] = _Val[_IM] / _Right;
905  return (*this);
906  }
_In_ int _Val
Definition: vcruntime_string.h:62
#define _RE
Definition: complex:41
#define _IM
Definition: complex:42
constexpr const _Ty &() _Right
Definition: algorithm:3591
_Myt& complex< double >::operator/= ( const _Myt _Right)
inline
927  { // divide by other complex
928  this->_Div(_Right);
929  return (*this);
930  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Other >
_Myt& complex< double >::operator/= ( const complex< _Other > &  _Right)
inline
963  { // divide by other complex
964  this->_Div(_Right);
965  return (*this);
966  }
complex<_Ty>& complex< double >::operator= ( const _Ty _Right)
inline
876  { // assign real
877  _Val[_RE] = _Right;
878  _Val[_IM] = 0;
879  return (*this);
880  }
_In_ int _Val
Definition: vcruntime_string.h:62
#define _RE
Definition: complex:41
#define _IM
Definition: complex:42
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Other >
_Myt& complex< double >::operator= ( const complex< _Other > &  _Right)
inline
934  { // assign another complex
935  _Val[_RE] = (_Ty)_Right._Val[_RE];
936  _Val[_IM] = (_Ty)_Right._Val[_IM];
937  return (*this);
938  }
_Ty _Val[2]
Definition: complex:586
_In_ int _Val
Definition: vcruntime_string.h:62
#define _RE
Definition: complex:41
double _Ty
Definition: complex:849
#define _IM
Definition: complex:42

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