Kokkos Core Kernels Package
Version of the Day
|
Memory layout tag indicating right-to-left (C or lexigraphical scheme) striding of multi-indices. More...
#include <Kokkos_Layout.hpp>
Public Types | |
using | array_layout = LayoutRight |
Tag this class as a kokkos array layout. More... | |
Memory layout tag indicating right-to-left (C or lexigraphical scheme) striding of multi-indices.
This is an example of a MemoryLayout
template parameter of View. The memory layout describes how View maps from a multi-index (i0, i1, ..., ik) to a memory location.
"Right layout" indicates a mapping where the rightmost index ik refers to contiguous access, and strides increase for dimensions going left from there. This layout imitates how C stores multi-dimensional arrays. For the special case of a two-dimensional array, "layout right" is also called "row major."
Definition at line 99 of file Kokkos_Layout.hpp.
Tag this class as a kokkos array layout.
Definition at line 101 of file Kokkos_Layout.hpp.