thrust

◆ operator+() [3/4]

template<typename T0 , typename T1 >
__host__ __device__ complex<typename detail::promoted_numerical_type<T0, T1>::type> thrust::operator+ ( const T0 &  x,
const complex< T1 > &  y 
)

Adds a complex number to a scalar.

The value type of the complex should be compatible with the scalar and the type of the returned complex is the promoted type of the two arguments.

Parameters
xThe scalar.
yThe complex.