https://mooseframework.inl.gov
Public Member Functions | Public Attributes | List of all members
Moose::Kokkos::JaggedArrayInnerDim< inner > Struct Template Reference

A simple object holding the dimension information of an inner array. More...

#include <KokkosJaggedArray.h>

Public Member Functions

KOKKOS_FUNCTION dof_id_type operator[] (unsigned int i) const
 Get the size of a dimension. More...
 

Public Attributes

dof_id_type dim [inner] = {0}
 Size of each dimension. More...
 
dof_id_type stride [inner] = {0}
 Stride of each dimension. More...
 

Detailed Description

template<unsigned int inner>
struct Moose::Kokkos::JaggedArrayInnerDim< inner >

A simple object holding the dimension information of an inner array.

Template Parameters
innerThe inner array dimension size

Definition at line 24 of file KokkosJaggedArray.h.

Member Function Documentation

◆ operator[]()

template<unsigned int inner>
KOKKOS_FUNCTION dof_id_type Moose::Kokkos::JaggedArrayInnerDim< inner >::operator[] ( unsigned int  i) const
inline

Get the size of a dimension.

Parameters
iThe dimension index
Returns
The size of the dimension

Definition at line 41 of file KokkosJaggedArray.h.

41 { return dim[i]; }
dof_id_type dim[inner]
Size of each dimension.

Member Data Documentation

◆ dim

template<unsigned int inner>
dof_id_type Moose::Kokkos::JaggedArrayInnerDim< inner >::dim[inner] = {0}

Size of each dimension.

Definition at line 29 of file KokkosJaggedArray.h.

Referenced by Moose::Kokkos::JaggedArrayInnerDim< inner >::operator[]().

◆ stride

template<unsigned int inner>
dof_id_type Moose::Kokkos::JaggedArrayInnerDim< inner >::stride[inner] = {0}

Stride of each dimension.

Definition at line 33 of file KokkosJaggedArray.h.


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