thrust::operator==

Defined in thrust/complex.h

template<typename T0, typename T1>
bool thrust::operator==(const T0 &x, const complex<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
  • x – The scalar.

  • y – The complex.