thrust

◆ operator=() [3/5]

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

Assign z.real() and z.imag() to the real and imaginary parts of this complex respectively.

Parameters
zThe complex to copy from.
Template Parameters
Uis convertible to value_type.