Kokkos Core Kernels Package
Version of the Day
|
Memory layout tag indicated arbitrarily strided multi-index mapping into contiguous memory. More...
#include <Kokkos_Layout.hpp>
Public Types | |
using | array_layout = LayoutStride |
Tag this class as a kokkos array layout. More... | |
Static Public Member Functions | |
template<typename iTypeOrder , typename iTypeDimen > | |
static KOKKOS_INLINE_FUNCTION LayoutStride | order_dimensions (int const rank, iTypeOrder const *const order, iTypeDimen const *const dimen) |
Compute strides from ordered dimensions. More... | |
Memory layout tag indicated arbitrarily strided multi-index mapping into contiguous memory.
Definition at line 138 of file Kokkos_Layout.hpp.
Tag this class as a kokkos array layout.
Definition at line 140 of file Kokkos_Layout.hpp.
|
inlinestatic |
Compute strides from ordered dimensions.
Values of order uniquely form the set [0..rank) and specify ordering of the dimensions. Order = {0,1,2,...} is LayoutLeft Order = {...,2,1,0} is LayoutRight
Definition at line 160 of file Kokkos_Layout.hpp.