thrust

◆ polar()

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
mThe magnitude of the returned complex.
thetaThe phase of the returned complex in radians.

Referenced by thrust::complex< T >::operator std::complex< T >().