This topic has not yet been rated - Rate this topic

grid Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents an N-dimensional index space that has an origin and an extent.

template <
   int _Rank
>
struct grid : public _Grid_base<_Rank, grid<_Rank>>;
_Rank

The rank of the grid.

Public Constructors

Name

Description

grid::grid Constructor

Initializes a new instance of the grid class.

Public Methods

Name

Description

grid::contains Method

Verifies that the specified grid object has the specified rank.

grid::size Method

Returns the total linear size of the extent of the grid object, in units of elements.

grid::tile Method

Creates a tiled_grid object that uses the specified tile extents. The overload used must match the rank of this grid object.

Public Data Members

Name

Description

grid::extent Data Member

Gets the extent object that defines the shape of the grid object.

A grid is an indexed space that specifies an index (location) and extent (size).For example, a grid<3> defined by index<3>(5,6,7) and extent<3>(2,3,4) contains all points described by the following statements.

5 ≤ first index value < 5+2
6 ≤ second index value < 6+3
7 ≤ third index value < 7+4

The size of a grid is the product of the values of the extent component and is returned by the get_size method. In the previous example, the size of the grid is 24.

Header: amp.h

Namespace: Concurrency

Did you find this helpful?
(1500 characters remaining)