16 #ifndef dealii_complex_overloads_h 17 #define dealii_complex_overloads_h 19 #include <deal.II/base/config.h> 21 #include <deal.II/base/template_constraints.h> 23 DEAL_II_NAMESPACE_OPEN
28 template <
typename T,
typename U>
31 #ifndef DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS 39 template <
typename T,
typename U>
41 operator*(
const std::complex<T> &left,
const std::complex<U> &right)
45 return static_cast<result_type
>(left) * static_cast<result_type>(right);
57 template <
typename T,
typename U>
60 operator*(
const std::complex<T> &left,
const U &right)
63 return static_cast<result_type
>(left) * static_cast<result_type>(right);
75 template <
typename T,
typename U>
77 std::complex<U>>::type
inline 78 operator*(
const T &left,
const std::complex<U> &right)
81 return static_cast<result_type
>(left) * static_cast<result_type>(right);
85 DEAL_II_NAMESPACE_CLOSE
ProductType< std::complex< T >, typename EnableIfScalar< U >::type >::type operator*(const std::complex< T > &left, const U &right)
ProductType< typename EnableIfScalar< T >::type, std::complex< U > >::type operator*(const T &left, const std::complex< U > &right)
ProductType< std::complex< T >, std::complex< U > >::type operator*(const std::complex< T > &left, const std::complex< U > &right)