16 #ifndef dealii_complex_overloads_h
17 #define dealii_complex_overloads_h
27 template <
typename T,
typename U>
31 #ifndef DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS
39 template <
typename T,
typename U>
40 inline std::enable_if_t<
41 std::is_floating_point<T>::value && std::is_floating_point<U>::value,
43 operator*(
const std::complex<T> &left,
const std::complex<U> &right)
47 return static_cast<result_type
>(left) *
static_cast<result_type
>(right);
57 template <
typename T,
typename U>
58 inline std::enable_if_t<
59 std::is_floating_point<T>::value && std::is_floating_point<U>::value,
61 operator/(
const std::complex<T> &left,
const std::complex<U> &right)
65 return static_cast<result_type
>(left) /
static_cast<result_type
>(right);
75 template <
typename T,
typename U>
76 inline std::enable_if_t<std::is_floating_point<T>::value &&
77 std::is_floating_point<U>::value,
82 return static_cast<result_type
>(left) *
static_cast<result_type
>(right);
92 template <
typename T,
typename U>
93 inline std::enable_if_t<std::is_floating_point<T>::value &&
94 std::is_floating_point<U>::value,
99 return static_cast<result_type
>(left) /
static_cast<result_type
>(right);
109 template <
typename T,
typename U>
110 inline std::enable_if_t<std::is_floating_point<T>::value &&
111 std::is_floating_point<U>::value,
116 return static_cast<result_type
>(left) *
static_cast<result_type
>(right);
126 template <
typename T,
typename U>
127 inline std::enable_if_t<std::is_floating_point<T>::value &&
128 std::is_floating_point<U>::value,
133 return static_cast<result_type
>(left) /
static_cast<result_type
>(right);
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
std::enable_if_t< std::is_floating_point< T >::value &&std::is_floating_point< U >::value, typename ProductType< std::complex< T >, std::complex< U > >::type > operator/(const std::complex< T > &left, const std::complex< U > &right)
std::enable_if_t< std::is_floating_point< T >::value &&std::is_floating_point< U >::value, typename ProductType< std::complex< T >, std::complex< U > >::type > operator*(const std::complex< T > &left, const std::complex< U > &right)
std::enable_if_t< std::is_floating_point< T >::value &&std::is_floating_point< U >::value, typename ProductType< T, std::complex< U > >::type > operator*(const T &left, const std::complex< U > &right)
std::enable_if_t< std::is_floating_point< T >::value &&std::is_floating_point< U >::value, typename ProductType< std::complex< T >, U >::type > operator*(const std::complex< T > &left, const U &right)
typename internal::ProductTypeImpl< typename std::decay< T >::type, typename std::decay< U >::type >::type type
std::enable_if_t< std::is_floating_point< T >::value &&std::is_floating_point< U >::value, typename ProductType< std::complex< T >, U >::type > operator/(const std::complex< T > &left, const U &right)
std::enable_if_t< std::is_floating_point< T >::value &&std::is_floating_point< U >::value, typename ProductType< T, std::complex< U > >::type > operator/(const T &left, const std::complex< U > &right)