array_view::operator() 運算子
傳回由一或多個參數指定的項目的值。
value_type& operator() (
const index<_Rank>& _Index
) const restrict(amp,cpu);
typename details::_Projection_result_type<_Value_type,_Rank>::_Result_type operator() (
int _I
) const restrict(amp,cpu);
value_type& operator() (
int _I0,
int _I1
) const restrict(amp,cpu);
value_type& operator() (
int _I0,
int _I1,
int _I2
) const restrict(amp,cpu);
typename details::_Projection_result_type<_Value_type,_Rank>::_Const_result_type operator() (
int _I
) const restrict(amp,cpu);
參數
_Index
項目的位置。_I0
第一個維度中的索引。_I1
第二個維度中的索引。_I2
第三個維度中的索引。_I
項目的位置。
傳回值
由一個或多個參數指定的項目值。
需求
**標頭:**amp.h
**命名空間:**並行