thrust::arg

Defined in thrust/complex.h

template<typename T>
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.