index 类

定义一个 N 维的索引点。

template <
   int _Rank
>
class index;

参数

  • _Rank
    秩或维数。

成员

公共构造函数

名称

描述

index::index 构造函数

初始化 index 类的新实例。

公共运算符

名称

描述

index::operator-- 运算符

递减 index 对象中的每个元素。

index::operator(mod)= 运算符

在元素除以某个数时,计算出 index 对象中每个元素的模数(余数)。

index::operator*= 运算符

index 对象的每个元素乘以数字。

index::operator/= 运算符

index 对象的每个元素除以一个数字。

index::operator[] 运算符

返回位于指定索引处的元素。

index::operator++ 运算符

递增 index 对象中每个元素。

index::operator+= 运算符

将指定数字添加到 index 对象的每个元素中。

index::operator= 运算符

将指定的 index 对象的内容复制到此对象中。

index::operator-= 运算符

index 对象的每个元素中减去指定数字。

公共常量

名称

描述

index::rank 常量

存储 index 对象的秩。

继承层次结构

index

备注

index 结构代表 N 整数的坐标向量,其指定 N-维空间中的唯一位置。 矢量中的值按最重要到最不重要的顺序排列。 您可使用 index::operator= 运算符 检索组件的值。

要求

**标头:**amp.h

命名空间: 并发

请参见

参考

Concurrency 命名空间 (C++ AMP)