Template Function thrust::arg

Function Documentation

template<typename T>__host__ __device__ T thrust::arg(const complex < T > & z)

Returns the phase angle (also known as argument) in radians of a complex.

Parameters
  • z: The complex from which to calculate the phase angle.