|
Template Numerical Library version\ main:0b2c40fb1
|
Data structure for accessing particular segment of row-major Chunked Ellpack segments. More...
#include <TNL/Algorithms/Segments/ChunkedEllpackSegmentView.h>
Public Types | |
| using | IndexType = Index |
| Type for indexing elements in related segments. | |
Public Member Functions | |
| __cuda_callable__ | ChunkedEllpackSegmentView (ChunkedEllpackSegmentView &&) noexcept=default |
| Move constructor. | |
| __cuda_callable__ | ChunkedEllpackSegmentView (const ChunkedEllpackSegmentView &)=default |
| Copy constructor. | |
| __cuda_callable__ | ChunkedEllpackSegmentView (IndexType segmentIdx, IndexType offset, IndexType size) |
| Constructor with all parameters. | |
| __cuda_callable__ IndexType | getGlobalIndex (IndexType localIndex) const |
| Get global index of an element with rank localIndex in the segment. | |
| __cuda_callable__ IndexType | getSegmentIndex () const |
| Get index of the segment. | |
| __cuda_callable__ IndexType | getSize () const |
| Get the size of the segment, i.e. number of elements in the segment. | |
| __cuda_callable__ ChunkedEllpackSegmentView & | operator= (ChunkedEllpackSegmentView &&) noexcept=default |
| Move assignment operator. | |
| __cuda_callable__ ChunkedEllpackSegmentView & | operator= (const ChunkedEllpackSegmentView &)=default |
| Copy assignment operator. | |
| __cuda_callable__ void | setSegmentIndex (IndexType index) |
| Set index of the segment. | |
Protected Attributes | |
| IndexType | segmentIdx |
| IndexType | segmentOffset |
| IndexType | segmentSize |
Data structure for accessing particular segment of row-major Chunked Ellpack segments.
| Index | is type for indexing elements in related segments. |
See the template specializations TNL::Algorithms::Segments::SegmentView< Index, ColumnMajorOrder > and TNL::Algorithms::Segments::SegmentView< Index, RowMajorOrder > for column-major and row-major elements organization respectively. They have equivalent interface.
|
inlinenodiscard |
Get global index of an element with rank localIndex in the segment.
| localIndex | is the rank of the element in the segment. |
|
inlinenodiscard |
Get index of the segment.
|
inlinenodiscard |
Get the size of the segment, i.e. number of elements in the segment.
|
inline |
Set index of the segment.
| index | of the segment. |