AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
A policy class for a set with multi-dimensional stride. Assumed layout is row-major. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/slam/policies/StridePolicies.hpp>
Public Types | |
using | IndexType = IntType |
using | ShapeType = StackArray< IntType, Dims > |
Public Member Functions | |
AXOM_HOST_DEVICE | MultiDimStride (StackArray< IntType, Dims > shape) |
AXOM_HOST_DEVICE IntType | stride () const |
Returns the "flat" stride of all the subcomponents. More... | |
IntType | operator() () const |
IntType & | operator() () |
AXOM_HOST_DEVICE ShapeType | strides () const |
Returns the strides for each indexing dimension. More... | |
AXOM_HOST_DEVICE ShapeType | shape () const |
Returns the multi-dimensional shape of the inner data. This only has meaning when used with Map-based types. More... | |
Static Public Member Functions | |
static ShapeType | DefaultSize () |
Static Public Attributes | |
constexpr static int | NumDims = Dims |
A policy class for a set with multi-dimensional stride. Assumed layout is row-major.
using axom::slam::policies::MultiDimStride< IntType, Dims >::IndexType = IntType |
using axom::slam::policies::MultiDimStride< IntType, Dims >::ShapeType = StackArray<IntType, Dims> |
|
inline |
|
inlinestatic |
|
inline |
Returns the "flat" stride of all the subcomponents.
|
inline |
|
inline |
|
inline |
Returns the strides for each indexing dimension.
|
inline |
Returns the multi-dimensional shape of the inner data. This only has meaning when used with Map-based types.
|
staticconstexpr |