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::LayoutLeft Struct Reference

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

#include <Kokkos_Layout.hpp>

Public Types

using array_layout = LayoutLeft
 Tag this class as a kokkos array layout. More...
 

Detailed Description

Memory layout tag indicating left-to-right (Fortran 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.

"Layout left" indicates a mapping where the leftmost index i0 refers to contiguous access, and strides increase for dimensions going right from there (i1, i2, ...). This layout imitates how Fortran stores multi-dimensional arrays. For the special case of a two-dimensional array, "layout left" is also called "column major."

Definition at line 50 of file Kokkos_Layout.hpp.

Member Typedef Documentation

Tag this class as a kokkos array layout.

Definition at line 52 of file Kokkos_Layout.hpp.


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