thrust

◆ operator+=() [2/2]

template<typename T>
template<typename U >
__host__ __device__ complex<T>& thrust::complex< T >::operator+= ( const U &  z)

Adds a scalar to this complex and assigns the result to this complex.

Parameters
zThe complex to be added.
Template Parameters
Uis convertible to value_type.