The inner array wrapper class. More...
#include <KokkosJaggedArray.h>
Public Member Functions | |
| KOKKOS_FUNCTION | JaggedArrayInnerData (T *data, JaggedArrayInnerDim< inner > dim) |
| Constructor. More... | |
| KOKKOS_FUNCTION unsigned int | size () const |
| Get the total inner array size. More... | |
| KOKKOS_FUNCTION unsigned int | n (unsigned int dim) const |
| Get the size of a dimension of the inner array. More... | |
| KOKKOS_FUNCTION T & | operator[] (unsigned int i) const |
| Get an array entry. More... | |
| template<typename... indices> | |
| KOKKOS_FUNCTION T & | operator() (indices... i) const |
| Get an array entry. More... | |
Protected Attributes | |
| T * | _data |
| Pointer to the inner array data. More... | |
| JaggedArrayInnerDim< inner > | _dim |
| Inner array dimension information. More... | |
The inner array wrapper class.
This object provides access to an inner array with local multi-dimensional indexing and is created as a temporary object by the jagged array class.
| T | The data type |
| inner | The inner array dimension size |
| layout | The memory layout type |
Definition at line 52 of file KokkosJaggedArray.h.
|
inline |
Constructor.
| data | The pointer to the inner array data |
| dim | The inner array dimension information |
Definition at line 60 of file KokkosJaggedArray.h.
|
inline |
Get the size of a dimension of the inner array.
| dim | The dimension index |
Definition at line 75 of file KokkosJaggedArray.h.
| KOKKOS_FUNCTION T & Moose::Kokkos::JaggedArrayInnerData< T, inner, layout >::operator() | ( | indices... | i | ) | const |
Get an array entry.
| i | The inner array index of each dimension |
Definition at line 107 of file KokkosJaggedArray.h.
|
inline |
Get an array entry.
| i | The dimensionless inner array index |
Definition at line 80 of file KokkosJaggedArray.h.
|
inline |
Get the total inner array size.
Definition at line 69 of file KokkosJaggedArray.h.
|
protected |
Pointer to the inner array data.
Definition at line 97 of file KokkosJaggedArray.h.
Referenced by Moose::Kokkos::JaggedArrayInnerData< T, inner, layout >::operator[]().
|
protected |
Inner array dimension information.
Definition at line 101 of file KokkosJaggedArray.h.
Referenced by Moose::Kokkos::JaggedArrayInnerData< T, inner, layout >::n(), Moose::Kokkos::JaggedArrayInnerData< T, inner, layout >::operator[](), and Moose::Kokkos::JaggedArrayInnerData< T, inner, layout >::size().
1.8.14