thrust::operator>>

Defined in thrust/complex.h

template<typename T, typename CharT, typename Traits>
std::basic_istream<CharT, Traits> &thrust::operator>>(std::basic_istream<CharT, Traits> &is, complex<T> &z)

Reads a complex number from an input stream.

The recognized formats are:

  • real

  • (real)

  • (real, imaginary)

The values read must be convertible to the complex's value_type

Parameters
  • is – The input stream.

  • z – The complex number to set.