Lines Matching refs:__c

315   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 complex(const complex<_Xp>& __c)
316 : __re_(__c.real()), __im_(__c.imag()) {}
349 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator=(const complex<_Xp>& __c) {
350 __re_ = __c.real();
351 __im_ = __c.imag();
355 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator+=(const complex<_Xp>& __c) {
356 __re_ += __c.real();
357 __im_ += __c.imag();
361 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator-=(const complex<_Xp>& __c) {
362 __re_ -= __c.real();
363 __im_ -= __c.imag();
367 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator*=(const complex<_Xp>& __c) {
368 *this = *this * complex(__c.real(), __c.imag());
372 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator/=(const complex<_Xp>& __c) {
373 *this = *this / complex(__c.real(), __c.imag());
428 _LIBCPP_HIDE_FROM_ABI explicit _LIBCPP_CONSTEXPR complex(const complex<double>& __c);
429 _LIBCPP_HIDE_FROM_ABI explicit _LIBCPP_CONSTEXPR complex(const complex<long double>& __c);
468 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator=(const complex<_Xp>& __c) {
469 __re_ = __c.real();
470 __im_ = __c.imag();
474 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator+=(const complex<_Xp>& __c) {
475 __re_ += __c.real();
476 __im_ += __c.imag();
480 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator-=(const complex<_Xp>& __c) {
481 __re_ -= __c.real();
482 __im_ -= __c.imag();
486 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator*=(const complex<_Xp>& __c) {
487 *this = *this * complex(__c.real(), __c.imag());
491 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator/=(const complex<_Xp>& __c) {
492 *this = *this / complex(__c.real(), __c.imag());
525 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR complex(const complex<float>& __c);
526 _LIBCPP_HIDE_FROM_ABI explicit _LIBCPP_CONSTEXPR complex(const complex<long double>& __c);
568 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator=(const complex<_Xp>& __c) {
569 __re_ = __c.real();
570 __im_ = __c.imag();
574 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator+=(const complex<_Xp>& __c) {
575 __re_ += __c.real();
576 __im_ += __c.imag();
580 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator-=(const complex<_Xp>& __c) {
581 __re_ -= __c.real();
582 __im_ -= __c.imag();
586 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator*=(const complex<_Xp>& __c) {
587 *this = *this * complex(__c.real(), __c.imag());
591 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator/=(const complex<_Xp>& __c) {
592 *this = *this / complex(__c.real(), __c.imag());
626 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR complex(const complex<float>& __c);
627 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR complex(const complex<double>& __c);
669 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator=(const complex<_Xp>& __c) {
670 __re_ = __c.real();
671 __im_ = __c.imag();
675 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator+=(const complex<_Xp>& __c) {
676 __re_ += __c.real();
677 __im_ += __c.imag();
681 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator-=(const complex<_Xp>& __c) {
682 __re_ -= __c.real();
683 __im_ -= __c.imag();
687 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator*=(const complex<_Xp>& __c) {
688 *this = *this * complex(__c.real(), __c.imag());
692 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex& operator/=(const complex<_Xp>& __c) {
693 *this = *this / complex(__c.real(), __c.imag());
712 …P_CONSTEXPR complex<float>::complex(const complex<double>& __c) : __re_(__c.real()), __im_(__c.ima…
714 inline _LIBCPP_CONSTEXPR complex<float>::complex(const complex<long double>& __c)
715 : __re_(__c.real()), __im_(__c.imag()) {}
717 …P_CONSTEXPR complex<double>::complex(const complex<float>& __c) : __re_(__c.real()), __im_(__c.ima…
719 inline _LIBCPP_CONSTEXPR complex<double>::complex(const complex<long double>& __c)
720 : __re_(__c.real()), __im_(__c.imag()) {}
722 inline _LIBCPP_CONSTEXPR complex<long double>::complex(const complex<float>& __c)
723 : __re_(__c.real()), __im_(__c.imag()) {}
725 inline _LIBCPP_CONSTEXPR complex<long double>::complex(const complex<double>& __c)
726 : __re_(__c.real()), __im_(__c.imag()) {}
789 _Tp __c = __w.real();
792 return complex<_Tp>((__a * __c) - (__b * __d), (__a * __d) + (__b * __c));
822 _Tp __c = __w.real();
825 _Tp __denom = __c * __c + __d * __d;
826 return complex<_Tp>((__a * __c + __b * __d) / __denom, (__b * __c - __a * __d) / __denom);
911 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp real(const complex<_Tp>& __c) {
912 return __c.real();
924 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp imag(const complex<_Tp>& __c) {
925 return __c.imag();
937 inline _LIBCPP_HIDE_FROM_ABI _Tp abs(const complex<_Tp>& __c) {
938 return std::hypot(__c.real(), __c.imag());
944 inline _LIBCPP_HIDE_FROM_ABI _Tp arg(const complex<_Tp>& __c) {
945 return std::atan2(__c.imag(), __c.real());
966 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _Tp norm(const complex<_Tp>& __c) {
967 if (std::__constexpr_isinf(__c.real()))
968 return std::abs(__c.real());
969 if (std::__constexpr_isinf(__c.imag()))
970 return std::abs(__c.imag());
971 return __c.real() * __c.real() + __c.imag() * __c.imag();
984 …ne _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex<_Tp> conj(const complex<_Tp>& __c) {
985 return complex<_Tp>(__c.real(), -__c.imag());
998 inline _LIBCPP_HIDE_FROM_ABI complex<_Tp> proj(const complex<_Tp>& __c) {
999 complex<_Tp> __r = __c;
1000 if (std::__constexpr_isinf(__c.real()) || std::__constexpr_isinf(__c.imag()))
1001 __r = complex<_Tp>(INFINITY, std::copysign(_Tp(0), __c.imag()));
1339 _CharT __c = __is.peek();
1340 if (__c == _CharT(',')) {
1346 __c = __is.peek();
1347 if (__c == _CharT(')')) {
1354 } else if (__c == _CharT(')')) {