Kokkos Core Kernels Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | List of all members
Kokkos::LayoutRight Struct Reference

Memory layout tag indicating right-to-left (C or lexigraphical scheme) striding of multi-indices. More...

#include <Kokkos_Layout.hpp>

Public Types

typedef LayoutRight array_layout
 Tag this class as a kokkos array layout. More...
 

Detailed Description

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 107 of file Kokkos_Layout.hpp.

Member Typedef Documentation

Tag this class as a kokkos array layout.

Definition at line 109 of file Kokkos_Layout.hpp.


The documentation for this struct was generated from the following file: