16 #ifndef dealii_complex_overloads_h 17 #define dealii_complex_overloads_h 19 #include <deal.II/base/config.h> 20 #include <deal.II/base/template_constraints.h> 22 DEAL_II_NAMESPACE_OPEN
28 #ifndef DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS 36 template <
typename T,
typename U>
39 operator*(
const std::complex<T> &left,
const std::complex<U> &right)
42 return static_cast<result_type
>(left) * static_cast<result_type>(right);
54 template <
typename T,
typename U>
57 operator*(
const std::complex<T> &left,
const U &right)
60 return static_cast<result_type
>(left) * static_cast<result_type>(right);
72 template <
typename T,
typename U>
75 operator*(
const T &left,
const std::complex<U> &right)
78 return static_cast<result_type
>(left) * static_cast<result_type>(right);
82 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)