Template Function thrust::polar¶
Defined in File complex.h
Function Documentation¶
-
template<typename T0, typename T1>__host__ __device__ complex<typename detail::promoted_numerical_type<T0, T1>::type> thrust::polar(const T0 & m, const T1 & theta = T1()) Returns a
complexwith the specified magnitude and phase.- Parameters
m: The magnitude of the returnedcomplex.theta: The phase of the returnedcomplexin radians.