Thrust

◆ operator==() [6/9]

template<typename T0 , typename T1 >
__host__ __device__ bool thrust::operator== ( const complex< T0 > &  x,
const T1 &  y 
)

Returns true if the imaginary part of the complex number is zero and the real part is equal to the scalar. Returns false otherwise.

Parameters
xThe complex.
yThe scalar.

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