thrust::operator-#
Overloads#
operator-(x, y)#
-
template<typename T0, typename T1>
complex<::cuda::std::common_type_t<T0, T1>> thrust::operator-(
)# Subtracts two
complexnumbers.The value types of the two
complextypes should be compatible and the type of the returnedcomplexis the promoted type of the two arguments.- Parameters:
x – The first
complex(minuend).y – The second
complex(subtrahend).
operator-(x, y)#
-
template<typename T0, typename T1>
complex<::cuda::std::common_type_t<T0, T1>> thrust::operator-(
)# Subtracts a scalar from a
complexnumber.The value type of the
complexshould be compatible with the scalar and the type of the returnedcomplexis the promoted type of the two arguments.- Parameters:
x – The
complex(minuend).y – The scalar (subtrahend).
operator-(x, y)#
-
template<typename T0, typename T1>
complex<::cuda::std::common_type_t<T0, T1>> thrust::operator-(
)# Subtracts a
complexnumber from a scalar.The value type of the
complexshould be compatible with the scalar and the type of the returnedcomplexis the promoted type of the two arguments.- Parameters:
x – The scalar (minuend).
y – The
complex(subtrahend).