operator- Operator (C++ AMP)

Visual Studio 2013

Computes the component-wise difference between the specified arguments.

template <
   int _Rank,
   template <int> class _Tuple_type
>
_Tuple_type<_Rank> operator-(
   const _Tuple_type<_Rank>& _Lhs,
   const _Tuple_type<_Rank>& _Rhs
) restrict(amp,cpu);

template <
   int _Rank,
   template <int> class _Tuple_type
>
_Tuple_type<_Rank> operator-(
   const _Tuple_type<_Rank>& _Lhs,
   typename _Tuple_type<_Rank>::value_type _Rhs
) restrict(amp,cpu);

template <
   int _Rank,
   template <int> class _Tuple_type
>
_Tuple_type<_Rank> operator-(
   typename _Tuple_type<_Rank>::value_type _Lhs,
   const _Tuple_type<_Rank>& _Rhs
) restrict(amp,cpu);

_Rank

The rank of the tuple arguments.

_Lhs

The argument to be subtracted from.

_Rhs

The argument to subtract.

The component-wise difference between the specified arguments.

The arguments to this operator are either tuples of the same rank and value type, or one tuple of a given rank and value type together with a scalar argument of the same value type. In both cases, the return type is a tuple of the same rank and value type as the tuple argument. When one of the arguments is a scalar, it is treated as a tuple of the same rank and value type as the other argument in which each element has the same value as the scalar argument.

Header: amp.h

Namespace: Concurrency

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft