thrust::polar

Defined in thrust/complex.h

template<typename T0, typename T1>
complex<::cuda::std::__common_type_t<T0, T1>> 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.