operator<<#

Overloads#

operator<<(os, z)#

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.

operator<<(os, dp)#

template<typename T, typename CharT, typename Traits>
std::basic_ostream<CharT, Traits> &thrust::operator<<(
std::basic_ostream<CharT, Traits> &os,
device_ptr<T> const &dp,
)#

Write the address that a device_ptr points to to an output stream.

Parameters:
  • os – The output stream.

  • dp – The device_ptr to output.

Returns:

os.

operator<<(os, y)#

template<typename T, typename charT, typename traits>
std::basic_ostream<charT, traits> &thrust::operator<<(
std::basic_ostream<charT, traits> &os,
const device_reference<T> &y,
)#

Writes to an output stream the value of a device_reference.

Parameters:
Returns:

os.