thrust::operator<<

Defined in thrust/complex.h

template<typename T, typename CharT, typename Traits>
std::basic_ostream<CharT, Traits> &thrust::operator<<(std::basic_ostream<CharT, Traits> &os, const complex<T> &z)

Writes to an output stream a complex number in the form (real, imaginary).

Parameters
  • os – The output stream.

  • z – The complex number to output.