名前空間 (AMP) では、次の演算子が定義されています。
operator==
指定した引数が等しいかどうかを判断します。
template <
int _Rank,
template <int> class _Tuple_type
>
bool operator== (
const _Tuple_type<_Rank>& _Lhs,
const _Tuple_type<_Rank>& _Rhs) restrict(amp);
パラメーター
_Rank
タプルの引数のランク。
_Lhs
比較するタプルの 1 つ。
_Rhs
比較するタプルの 1 つ。
戻り値
タプルが等しい場合は 、それ以外の場合は 。
operator!=
指定した引数が等しくないかどうかを判断します。
template <
int _Rank,
template <int> class _Tuple_type
>
bool operator!= (
const _Tuple_type<_Rank>& _Lhs,
const _Tuple_type<_Rank>& _Rhs) restrict(amp);
パラメーター
_Rank
タプルの引数のランク。
_Lhs
比較するタプルの 1 つ。
_Rhs
比較するタプルの 1 つ。
戻り値
タプルが等しくない場合は 、それ以外の場合は 。
operator+
指定された引数の要素ごとの合計を計算します。
template <
int _Rank,
template <int> class _Tuple_type
>
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
>
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
>
class _Tuple_type> _Tuple_type<_Rank> operator+(
typename _Tuple_type<_Rank>::value_type _Lhs,
const _Tuple_type<_Rank>& _Rhs) restrict(amp,cpu);
パラメーター
_Rank
タプルの引数のランク。
_Lhs
追加する引数の 1 つ。
_Rhs
追加する引数の 1 つ。
戻り値
指定された引数の要素ごとの合計。
オペレーター
指定された引数の要素ごとの差を計算します。
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
タプルの引数のランク。
_Lhs
減算元の引数。
_Rhs
減算する引数。
戻り値
指定された引数の要素ごとの差。
operator*
指定された引数の要素ごとの積を計算します。
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
タプルの引数のランク。
_Lhs
乗算するタプルの1つ。
_Rhs
乗算するタプルの1つ。
戻り値
指定された引数の要素ごとの積。
オペレーター
指定された引数のコンポーネントごとの商を計算します。
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
タプルの引数のランク。
_Lhs
分割されるタプル。
_Rhs
除算するためのタプル。
戻り値
指定された引数のコンポーネントごとの商。
operator%
最初の指定された引数を、2 番目の指定された引数で除算した剰余を計算します。
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
タプルの引数のランク。
_Lhs
剰余が計算される基となるタプル。
_Rhs
剰余演算に用いるタプル。
戻り値
指定された第1の引数を第2の引数で割った余りの結果。
関連項目
コンカレンシー名前空間