Partager via


extent Class (C++ AMP)

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.

Members

Public Constructors

Name

Description

extent::extent Constructor

Initializes a new instance of the extent class.

Public Methods

Name

Description

extent::contains Method

Verifies that the specified extent object has the specified rank.

extent::size Method

Returns the total linear size of the extent (in units of elements).

extent::tile Method

Produces a tiled_extent object with the tile extents given by specified dimensions.

Public Operators

Name

Description

extent::operator- Operator

Returns a new extent object that's created by subtracting the index elements from the corresponding extent elements.

extent::operator-- Operator

Decrements each element of the extent object.

extent::operator(mod)= Operator

Calculates the modulus (remainder) of each element in the extent object when that element is divided by a number.

extent::operator*= Operator

Multiplies each element of the extent object by a number.

extent::operator/= Operator

Divides each element of the extent object by a number.

extent::operator[] Operator

Returns the element that's at the specified index.

extent::operator+ Operator

Returns a new extent object that's created by adding the corresponding index and extent elements.

extent::operator++ Operator

Increments each element of the extent object.

extent::operator+= Operator

Adds the specified number to each element of the extent object.

extent::operator= Operator

Copies the contents of another extent object into this one.

extent::operator-= Operator

Subtracts the specified number from each element of the extent object.

Public Constants

Name

Description

extent::rank Constant

Gets the rank of the extent object.

Inheritance Hierarchy

extent

Requirements

Header: amp.h

Namespace: Concurrency

See Also

Reference

Concurrency Namespace (C++ AMP)