Lines Matching refs:complex

12 class complex {
21 complex(const value_type &__re = value_type(), const value_type &__im = value_type())
24 complex(const complex<_Xp> &__c)
33 complex &operator=(const value_type &__re) {
38 complex &operator+=(const value_type &__re) {
42 complex &operator-=(const value_type &__re) {
46 complex &operator*=(const value_type &__re) {
51 complex &operator/=(const value_type &__re) {
58 complex &operator=(const complex<_Xp> &__c) {
64 complex &operator+=(const complex<_Xp> &__c) {
70 complex &operator-=(const complex<_Xp> &__c) {
76 complex &operator*=(const complex<_Xp> &__c) {
77 *this = *this * complex(__c.real(), __c.imag());
81 complex &operator/=(const complex<_Xp> &__c) {
82 *this = *this / complex(__c.real(), __c.imag());
88 inline complex<_Tp>
89 operator+(const complex<_Tp> &__x, const complex<_Tp> &__y) {
90 complex<_Tp> __t(__x);
96 inline complex<_Tp>
97 operator+(const complex<_Tp> &__x, const _Tp &__y) {
98 complex<_Tp> __t(__x);
104 inline complex<_Tp>
105 operator+(const _Tp &__x, const complex<_Tp> &__y) {
106 complex<_Tp> __t(__y);
112 inline complex<_Tp>
113 operator-(const complex<_Tp> &__x, const complex<_Tp> &__y) {
114 complex<_Tp> __t(__x);
120 inline complex<_Tp>
121 operator-(const complex<_Tp> &__x, const _Tp &__y) {
122 complex<_Tp> __t(__x);
128 inline complex<_Tp>
129 operator-(const _Tp &__x, const complex<_Tp> &__y) {
130 complex<_Tp> __t(-__y);
136 complex<_Tp>
137 operator*(const complex<_Tp> &__z, const complex<_Tp> &__w) {
185 return complex<_Tp>(__x, __y);
189 inline complex<_Tp>
190 operator*(const complex<_Tp> &__x, const _Tp &__y) {
191 complex<_Tp> __t(__x);
197 inline complex<_Tp>
198 operator*(const _Tp &__x, const complex<_Tp> &__y) {
199 complex<_Tp> __t(__y);
205 complex<_Tp>
206 operator/(const complex<_Tp> &__z, const complex<_Tp> &__w) {
237 return complex<_Tp>(__x, __y);
241 inline complex<_Tp>
242 operator/(const complex<_Tp> &__x, const _Tp &__y) {
243 return complex<_Tp>(__x.real() / __y, __x.imag() / __y);
247 inline complex<_Tp>
248 operator/(const _Tp &__x, const complex<_Tp> &__y) {
249 complex<_Tp> __t(__x);
255 inline complex<_Tp>
256 operator+(const complex<_Tp> &__x) {
261 inline complex<_Tp>
262 operator-(const complex<_Tp> &__x) {
263 return complex<_Tp>(-__x.real(), -__x.imag());
268 operator==(const complex<_Tp> &__x, const complex<_Tp> &__y) {
274 operator==(const complex<_Tp> &__x, const _Tp &__y) {
280 operator==(const _Tp &__x, const complex<_Tp> &__y) {
286 operator!=(const complex<_Tp> &__x, const complex<_Tp> &__y) {
292 operator!=(const complex<_Tp> &__x, const _Tp &__y) {
298 operator!=(const _Tp &__x, const complex<_Tp> &__y) {
302 template <class _Tp> _Tp abs(const std::complex<_Tp> &__c);
306 template <class _Tp> _Tp arg(const std::complex<_Tp> &__c);
310 template <class _Tp> _Tp norm(const std::complex<_Tp> &__c);
314 template <class _Tp> std::complex<_Tp> conj(const std::complex<_Tp> &__c);
318 template <class _Tp> std::complex<_Tp> proj(const std::complex<_Tp> &__c);
323 complex<_Tp> polar(const _Tp &__rho, const _Tp &__theta = _Tp());
327 template <class _Tp> std::complex<_Tp> log(const std::complex<_Tp> &__x);
331 template <class _Tp> std::complex<_Tp> log10(const std::complex<_Tp> &__x);
336 std::complex<_Tp> sqrt(const std::complex<_Tp> &__x);
341 std::complex<_Tp> exp(const std::complex<_Tp> &__x);
346 std::complex<_Tp> pow(const std::complex<_Tp> &__x,
347 const std::complex<_Tp> &__y);
351 template <class _Tp> std::complex<_Tp> __sqr(const std::complex<_Tp> &__x);
356 std::complex<_Tp> asinh(const std::complex<_Tp> &__x);
361 std::complex<_Tp> acosh(const std::complex<_Tp> &__x);
366 std::complex<_Tp> atanh(const std::complex<_Tp> &__x);
371 std::complex<_Tp> sinh(const std::complex<_Tp> &__x);
376 std::complex<_Tp> cosh(const std::complex<_Tp> &__x);
381 std::complex<_Tp> tanh(const std::complex<_Tp> &__x);
386 std::complex<_Tp> asin(const std::complex<_Tp> &__x);
391 std::complex<_Tp> acos(const std::complex<_Tp> &__x);
396 std::complex<_Tp> atan(const std::complex<_Tp> &__x);
401 std::complex<_Tp> sin(const std::complex<_Tp> &__x);
405 template <class _Tp> std::complex<_Tp> cos(const std::complex<_Tp> &__x);
410 std::complex<_Tp> tan(const std::complex<_Tp> &__x);