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

Memory layout tag indicated arbitrarily strided multi-index mapping into contiguous memory. 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).

Static Public Member Functions

template<typename iTypeOrder , typename iTypeDimen >
static KOKKOS_INLINE_FUNCTION
LayoutStride 
order_dimensions (int const rank, iTypeOrder const *const order, iTypeDimen const *const dimen)
 Compute strides from ordered dimensions.

Detailed Description

Memory layout tag indicated arbitrarily strided multi-index mapping into contiguous memory.

Definition at line 103 of file Kokkos_Layout.hpp.


Member Typedef Documentation

typedef Impl::LayoutTag Kokkos::LayoutStride::kokkos_tag

The tag (what type of kokkos_object is this).

Definition at line 106 of file Kokkos_Layout.hpp.


Member Function Documentation

template<typename iTypeOrder , typename iTypeDimen >
static KOKKOS_INLINE_FUNCTION LayoutStride Kokkos::LayoutStride::order_dimensions ( int const  rank,
iTypeOrder const *const  order,
iTypeDimen const *const  dimen 
) [inline, static]

Compute strides from ordered dimensions.

Values of order uniquely form the set [0..rank) and specify ordering of the dimensions. Order = {0,1,2,...} is LayoutLeft Order = {...,2,1,0} is LayoutRight

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