We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa07d5 commit 1d4beafCopy full SHA for 1d4beaf
thrust/thrust/detail/complex/complex.inl
@@ -32,16 +32,16 @@ __host__ __device__ complex<T>::complex(const T& re)
32
{}
33
34
template <typename T>
35
-__host__ __device__ complex<T>::complex(const T& re, const T& im) : data{re, im} {}
36
-
+__host__ __device__ complex<T>::complex(const T& re, const T& im)
+ : data{re, im}
37
+{}
38
39
40
template <typename U>
41
__host__ __device__ complex<T>::complex(const complex<U>& z)
42
: data{T(z.real()), T(z.imag())}
43
44
45
46
__host__ THRUST_STD_COMPLEX_DEVICE complex<T>::complex(const std::complex<T>& z)
47
: data{THRUST_STD_COMPLEX_REAL(z), THRUST_STD_COMPLEX_IMAG(z)}
0 commit comments