Template Function thrust::polar

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 complex with the specified magnitude and phase.

Parameters
  • m: The magnitude of the returned complex.

  • theta: The phase of the returned complex in radians.