Kokkos Core Kernels Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Public Types
Kokkos::LayoutRight Struct Reference

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

#include <Kokkos_Layout.hpp>

List of all members.

Public Types

typedef Impl::LayoutTag kokkos_tag
 The tag (what type of kokkos_object is this).

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


Member Typedef Documentation

typedef Impl::LayoutTag Kokkos::LayoutRight::kokkos_tag

The tag (what type of kokkos_object is this).

Definition at line 95 of file Kokkos_Layout.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends