array_view::section 方法

返回指定原子上并且选择性地具有指定范围的 array_view 对象的字部分。

array_view section(
   const Concurrency::index<_Rank>& _Section_origin,
   const Concurrency::extent<_Rank>& _Section_extent
) const restrict(amp,cpu);

array_view section(
   const Concurrency::index<_Rank>& _Idx
) const restrict(amp,cpu);

array_view section(
   const Concurrency::extent<_Rank>& _Ext
) const restrict(amp,cpu);

array_view section(
   int _I0,
   int _E0
) const restrict(amp,cpu);

array_view section(
   int _I0,
   int _I1,
   int _E0,
   int _E1
) const restrict(amp,cpu);

array_view section(
   int _I0,
   int _I1,
   int _I2,
   int _E0,
   int _E1,
   int _E2
) const restrict(amp,cpu);

参数

  • _E0
    此区域范围的最高有效组件。

  • _E1
    此区域范围的接近最高有效组件。

  • _E2
    此区域范围的最低有效组件。

  • _Ext
    指定区域范围的范围对象。 原始是 0。

  • _Idx
    指定原点位置的索引对象。 该范围其余部分的子节。

  • _I0
    本节原点的最高有效组件。

  • _I1
    本节原点的接近最高有效组件。

  • _I2
    本节原点的最低有效组件。

  • _Rank
    区域的等级。

  • _Section_extent
    指定区域范围的范围对象。

  • _Section_origin
    指定原点位置的索引对象。

返回值

在指定的原点并且选择性地具有指定范围的 array_view 对象的子部分。 当仅指定 index 对象时,小节包含关联范围中的所有元素,这些元素的索引大于 index 对象中的元素的索引。

要求

**标头:**amp.h

命名空间: 并发

请参见

参考

array_view 类