A one-dimensional view of an inner array along one dimension, with the indices of all other dimensions fixed. More...
#include <KokkosJaggedArray.h>
Public Member Functions | |
| KOKKOS_FUNCTION | JaggedArrayInnerSlice (T *data, const unsigned int stride, const unsigned int size) |
| Constructor. | |
| KOKKOS_FUNCTION unsigned int | size () const |
| Get the number of entries. | |
| KOKKOS_FUNCTION T & | operator[] (const unsigned int i) const |
| Get an entry. | |
Private Attributes | |
| T *const | _data |
| Pointer to the first entry. | |
| const unsigned int | _stride |
| Distance between consecutive entries. | |
| const unsigned int | _size |
| Number of entries. | |
A one-dimensional view of an inner array along one dimension, with the indices of all other dimensions fixed.
Entries alias the entries of the inner array.
| T | The data type |
Definition at line 153 of file KokkosJaggedArray.h.
|
inline |
Constructor.
| data | The pointer to the first entry of the view |
| stride | The distance between consecutive entries of the view |
| size | The number of entries of the view |
Definition at line 163 of file KokkosJaggedArray.h.
|
inline |
|
inline |
Get the number of entries.
Definition at line 172 of file KokkosJaggedArray.h.
|
private |
Pointer to the first entry.
Definition at line 188 of file KokkosJaggedArray.h.
Referenced by Moose::Kokkos::JaggedArrayInnerSlice< T >::operator[]().
|
private |
Number of entries.
Definition at line 196 of file KokkosJaggedArray.h.
Referenced by Moose::Kokkos::JaggedArrayInnerSlice< T >::operator[](), and Moose::Kokkos::JaggedArrayInnerSlice< T >::size().
|
private |
Distance between consecutive entries.
Definition at line 192 of file KokkosJaggedArray.h.
Referenced by Moose::Kokkos::JaggedArrayInnerSlice< T >::operator[]().