STLdoc
STLdocumentation
|
Define an N-dimensional index point; which may also be viewed as a vector based at the origin in N-space. More...
#include <amp.h>
Public Types | |
typedef int | value_type |
Public Member Functions | |
_CPP_AMP_VERIFY_RANK (_Rank, index) | |
index () __GPU | |
Default constructor, initializes all elements with 0. More... | |
index (const index< _Rank > &_Other) __GPU | |
Copy Constructor. More... | |
index (int _I) __GPU | |
Constructor for index<1> More... | |
index (int _I0, int _I1) __GPU | |
Constructor for index<2> More... | |
index (int _I0, int _I1, int _I2) __GPU | |
Constructor for index<3> More... | |
index (const int _Array[_Rank]) __GPU | |
Constructs an index<N> with the coordinate values provided the array of int component values. If the coordinate array length is not N, the behavior is undefined. More... | |
index< _Rank > & | operator= (const index< _Rank > &_Other) __GPU |
copy-assignment operators More... | |
int | operator[] (unsigned _Index) const __GPU |
Index operator. More... | |
int & | operator[] (unsigned _Index) __GPU |
Index operator. More... | |
index< _Rank > & | operator+= (const index< _Rank > &_Rhs) __GPU |
Element-wise addition of this index with another index. More... | |
index< _Rank > & | operator-= (const index< _Rank > &_Rhs) __GPU |
Element-wise subtraction of this index with another index. More... | |
index< _Rank > & | operator+= (int _Rhs) __GPU |
Adds an integer value to each element of this index. More... | |
index< _Rank > & | operator-= (int _Rhs) __GPU |
Subtracts an integer value from each element of this index. More... | |
index< _Rank > & | operator*= (int _Rhs) __GPU |
Multiplies each element of this index with an integer value. More... | |
index< _Rank > & | operator/= (int _Rhs) __GPU |
Divides each element of this index by an integer value. More... | |
index< _Rank > & | operator%= (int _Rhs) __GPU |
Modulus an integer value into each element of this index. More... | |
index< _Rank > & | operator++ () __GPU |
Pre-increments each element of this index. More... | |
index< _Rank > | operator++ (int) __GPU |
Post-increments each element of this index. More... | |
index< _Rank > & | operator-- () __GPU |
Pre-decrements each element of this index. More... | |
index | operator-- (int) __GPU |
Post-decrements each element of this index. More... | |
Static Public Attributes | |
static const int | rank = _Rank |
Private Member Functions | |
index (details::_eInitializeState) __GPU | |
Constructor. More... | |
Private Attributes | |
int | _M_base [_Rank] |
Friends | |
template<typename _Value_type , int _Rank> | |
class | array |
template<int _Rank, int _Element_size> | |
class | details::_Array_view_shape |
template<int _Rank, int _Element_size> | |
class | details::_Array_view_base |
template<class _Tuple_type > | |
_Tuple_type | details::_Create_uninitialized_tuple () __GPU |
Define an N-dimensional index point; which may also be viewed as a vector based at the origin in N-space.
The index<N> type represents an N-dimensional vector of int which specifies a unique position in an N-dimensional space. The values in the coordinate vector are ordered from most-significant to least-significant. Thus, in 2-dimensional space, the index vector (5,3) represents the position at row 5, column 3.
The position is relative to the origin in the N-dimensional space, and can contain negative component values.
_Rank | The dimensionality space into which this index applies, can be any integer greater than 0. |
typedef int Concurrency::index< _Rank >::value_type |
|
inline |
Default constructor, initializes all elements with 0.
|
inline |
Copy Constructor.
_Other | The object to copy from |
|
inlineexplicit |
Constructor for index<1>
_I | The value for initialization |
|
inline |
|
inline |
|
inlineexplicit |
Constructs an index<N> with the coordinate values provided the array of int component values. If the coordinate array length is not N, the behavior is undefined.
_Array | A single-dimensional array with _Rank elements. |
|
inlineprivate |
Concurrency::index< _Rank >::_CPP_AMP_VERIFY_RANK | ( | _Rank | , |
index< _Rank > | |||
) |
|
inline |
Modulus an integer value into each element of this index.
_Rhs | The integer value to modulus. |
|
inline |
Multiplies each element of this index with an integer value.
_Rhs | The integer value to multiply. |
|
inline |
Pre-increments each element of this index.
|
inline |
Post-increments each element of this index.
|
inline |
Element-wise addition of this index with another index.
_Rhs | The index to add |
|
inline |
Adds an integer value to each element of this index.
_Rhs | The integer value to add |
|
inline |
Pre-decrements each element of this index.
|
inline |
Post-decrements each element of this index.
|
inline |
Element-wise subtraction of this index with another index.
_Rhs | The index to subtract |
|
inline |
Subtracts an integer value from each element of this index.
_Rhs | The integer value to subtract. |
|
inline |
Divides each element of this index by an integer value.
_Rhs | The integer value to divide by. |
|
inline |
copy-assignment operators
|
inline |
Index operator.
_Index | An integral value between 0 and _Rank-1. |
|
inline |
Index operator.
_Index | An integral value between 0 and _Rank-1. |
|
friend |
|
friend |
|
friend |
|
private |
|
static |