extent Class (C++ AMP)

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Represents a vector of N integer values that specify the bounds of an N-dimensional space that has an origin of 0. The values in the vector are ordered from most significant to least significant.

template <
    int _Rank>  
class extent;  

Parameters

_Rank
The rank of the extent object.

Public Constructors

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

Public Methods

NameDescription
extent::contains MethodVerifies that the specified extent object has the specified rank.
extent::size MethodReturns the total linear size of the extent (in units of elements).
extent::tile MethodProduces a tiled_extent object with the tile extents given by specified dimensions.

Public Operators

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

Public Constants

NameDescription
extent::rank ConstantGets the rank of the extent object.

extent

Header: amp.h

Namespace: Concurrency

Concurrency Namespace (C++ AMP)

Show: