Class to maintain the stride in each dimension. More...
Public Member Functions | |
| __host__ __device__ Int32 | stride (int i) const |
| Value of the stride for the i-th dimension. | |
| __host__ __device__ Int32 | operator() (int i) const |
| __host__ __device__ SmallSpan< const Int32 > | asSpan () const |
| __host__ __device__ Int64 | totalStride () const |
| Total stride value. | |
| __host__ __device__ ArrayStridesBase< RankValue - 1 > | removeFirstStride () const |
Static Public Member Functions | |
| __host__ static __device__ ArrayStridesBase< RankValue > | fromSpan (Span< const Int32 > strides) |
| Constructs an instance from the values given in stride. | |
Protected Attributes | |
| std::array< Int32, RankValue > | m_strides = {} |
Class to maintain the stride in each dimension.
The stride for a dimension is the memory distance between two elements of the array for that dimension. Generally, the stride is equal to the number of elements in the dimension unless padding is used, for example, to align certain dimensions.
Definition at line 66 of file arccore/src/base/arccore/base/ArrayExtents.h.
|
inline |
Definition at line 74 of file arccore/src/base/arccore/base/ArrayExtents.h.
|
inlinestatic |
Constructs an instance from the values given in stride.
Definition at line 92 of file arccore/src/base/arccore/base/ArrayExtents.h.
|
inline |
Definition at line 73 of file arccore/src/base/arccore/base/ArrayExtents.h.
|
inline |
Definition at line 84 of file arccore/src/base/arccore/base/ArrayExtents.h.
|
inline |
Value of the stride for the i-th dimension.
Definition at line 72 of file arccore/src/base/arccore/base/ArrayExtents.h.
|
inline |
Total stride value.
Definition at line 76 of file arccore/src/base/arccore/base/ArrayExtents.h.
|
protected |
Definition at line 103 of file arccore/src/base/arccore/base/ArrayExtents.h.