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
Point< dim, typename ProductType< Number, typename EnableIfScalar< OtherNumber >::type >::type > operator *(const OtherNumber) const