thrust

◆ proj()

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

Returns the projection of a complex on the Riemann sphere. For all finite complex it returns the argument. For complexs with a non finite part returns (INFINITY,+/-0) where the sign of the zero matches the sign of the imaginary part of the argument.

Parameters
zThe complex argument.

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