fix operator/ failures
@@ -107,6 +107,12 @@ __host__ __device__ inline complex<T> operator/(const complex<T>& lhs,
return quot;
}
+template <typename T>
+__host__ __device__ inline complex<T> operator/(const complex<T>& lhs,
+ const T& rhs) {
+ return complex<T>(lhs.real() / rhs, lhs.imag() / rhs);
+}
+
template <typename T, typename S>
__host__ __device__ inline complex<T> operator/(const complex<T>& lhs,
const S& rhs) {
