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 typename std::enable_if<
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 typename std::enable_if<
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>
83 return static_cast<result_type
>(left) * static_cast<result_type>(right);
93 template <
typename T,
typename U>
101 return static_cast<result_type
>(left) / static_cast<result_type>(right);
111 template <
typename T,
typename U>
120 return static_cast<result_type
>(left) * static_cast<result_type>(right);
130 template <
typename T,
typename U>
138 return static_cast<result_type
>(left) / static_cast<result_type>(right);
typename internal::ProductTypeImpl< typename std::decay< T >::type, typename std::decay< U >::type >::type type
Point< dim, typename ProductType< Number, typename EnableIfScalar< OtherNumber >::type >::type > operator*(const OtherNumber) const
#define DEAL_II_NAMESPACE_CLOSE
std::enable_if< std::is_floating_point< T >::value &&std::is_floating_point< U >::value, typename ProductType< std::complex< T >, std::complex< U > >::type >::type operator/(const std::complex< T > &left, const std::complex< U > &right)
#define DEAL_II_NAMESPACE_OPEN