index Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

Defines an N-dimensional index point.

template <
    int _Rank  
>  
class index;  

Parameters

_Rank
The rank, or number of dimensions.

Public Constructors

NameDescription
index::index ConstructorInitializes a new instance of the index class.

Public Operators

NameDescription
index::operator-- OperatorDecrements each element of the index object.
index::operator(mod)= OperatorCalculates the modulus (remainder) of each element in the index object when that element is divided by a number.
index::operator*= OperatorMultiplies each element of the index object by a number.
index::operator/= OperatorDivides each element of the index object by a number.
index::operatorOperatorReturns the element that's at the specified index.
index::operator++ OperatorIncrements each element of the index object.
index::operator+= OperatorAdds the specified number to each element of the index object.
index::operator= OperatorCopies the contents of the specified index object into this one.
index::operator-= OperatorSubtracts the specified number from each element of the index object.

Public Constants

NameDescription
index::rank ConstantStores the rank of the index object.

index

The index structure represents a coordinate vector of N integers that specifies a unique position in an N-dimensional space. The values in the vector are ordered from most significant to least significant. You can retrieve the values of the components using index::operator= Operator.

Header: amp.h

Namespace: Concurrency

Concurrency Namespace (C++ AMP)

Show: