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

Memory layout tag indicating left-to-right (Fortran 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 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 73 of file Kokkos_Layout.hpp.


Member Typedef Documentation

typedef Impl::LayoutTag Kokkos::LayoutLeft::kokkos_tag

The tag (what type of kokkos_object is this).

Definition at line 75 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