thrust

◆ operator=() [5/5]

template<typename T>
template<typename U >
__host__ complex& thrust::complex< T >::operator= ( const std::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.