|
NeoN
A framework for CFD software
|
A class representing a segment of indices. More...
#include <segmentedVector.hpp>
Public Member Functions | |
| KOKKOS_INLINE_FUNCTION Kokkos::pair< IndexType, IndexType > | bounds (localIdx segI) const |
| Get the bounds of a segment. | |
| KOKKOS_INLINE_FUNCTION Kokkos::pair< IndexType, IndexType > | range (localIdx segI) const |
| Get the range, ie. [start,end), of a segment. | |
| KOKKOS_INLINE_FUNCTION View< ValueType > | view (localIdx segI) const |
| Get a subview of values corresponding to a segment. | |
| KOKKOS_INLINE_FUNCTION IndexType | operator[] (localIdx i) const |
| Access an element of the segments. | |
Public Attributes | |
| View< ValueType > | values |
| A View with the values. | |
| View< IndexType > | segments |
| A View of indices representing the segments. | |
A class representing a segment of indices.
| IndexType | The type of the indices. |
Definition at line 60 of file segmentedVector.hpp.
|
inline |
Get the bounds of a segment.
| segI | The index of the segment. |
Definition at line 81 of file segmentedVector.hpp.
|
inline |
Access an element of the segments.
| i | The index of the element. |
Definition at line 120 of file segmentedVector.hpp.
|
inline |
Get the range, ie. [start,end), of a segment.
| segI | The index of the segment. |
Definition at line 93 of file segmentedVector.hpp.
|
inline |
Get a subview of values corresponding to a segment.
| ValueType | The type of the values. |
| segI | The index of the segment. |
Definition at line 107 of file segmentedVector.hpp.
| View<IndexType> NeoN::SegmentedVectorView< ValueType, IndexType >::segments |
A View of indices representing the segments.
Definition at line 72 of file segmentedVector.hpp.
| View<ValueType> NeoN::SegmentedVectorView< ValueType, IndexType >::values |
A View with the values.
Definition at line 67 of file segmentedVector.hpp.