|
|
__cuda_callable__ | SlicedEllpackBase ()=default |
| | Default constructor with no parameters to create empty segments view.
|
|
__cuda_callable__ | SlicedEllpackBase (const SlicedEllpackBase &)=default |
| | Copy constructor.
|
|
__cuda_callable__ | SlicedEllpackBase (IndexType size, IndexType storageSize, IndexType segmentsCount, OffsetsView &&sliceOffsets, OffsetsView &&sliceSegmentSizes) |
| | Constructor that initializes segments based on all necessary data.
|
|
__cuda_callable__ | SlicedEllpackBase (SlicedEllpackBase &&) noexcept=default |
| | Move constructor.
|
|
template<typename Function> |
| void | forAllElements (Function &&function) const |
|
template<typename Condition, typename Function> |
| void | forAllElementsIf (Condition condition, Function function) const |
|
template<typename Function> |
| void | forAllSegments (Function &&function) const |
|
template<typename Array, typename Function> |
| void | forElements (const Array &segmentIndexes, Function function) const |
|
template<typename Array, typename Function> |
| void | forElements (const Array &segmentIndexes, Index begin, Index end, Function function) const |
|
template<typename Function> |
| void | forElements (IndexType begin, IndexType end, Function &&function) const |
|
template<typename Condition, typename Function> |
| void | forElementsIf (IndexType begin, IndexType end, Condition condition, Function function) const |
|
template<typename Function> |
| void | forSegments (IndexType begin, IndexType end, Function &&function) const |
|
__cuda_callable__ IndexType | getElementCount () const |
| | Returns the number of elements managed by all segments.
|
| __cuda_callable__ IndexType | getGlobalIndex (Index segmentIdx, Index localIdx) const |
| | Computes the global index of an element managed by the segments.
|
|
__cuda_callable__ IndexType | getSegmentCount () const |
| | Returns the number of segments.
|
|
__cuda_callable__ IndexType | getSegmentsCount () const |
| | Returns the number of segments. Deprecated, use getSegmentCount().
|
|
__cuda_callable__ IndexType | getSegmentSize (IndexType segmentIdx) const |
| | Returns the size of a particular segment denoted by segmentIdx.
|
| __cuda_callable__ SegmentViewType | getSegmentView (IndexType segmentIdx) const |
| | Returns a segment view (i.e., a segment accessor) for the specified segment index.
|
|
__cuda_callable__ IndexType | getSize () const |
| | Returns the number of elements managed by all segments.
|
|
__cuda_callable__ OffsetsView | getSliceOffsetsView () |
| | Returns a modifiable vector view with the offsets of particular slices.
|
|
__cuda_callable__ ConstOffsetsView | getSliceOffsetsView () const |
| | Returns a constant vector view with the offsets of particular slices.
|
|
__cuda_callable__ OffsetsView | getSliceSegmentSizesView () |
| | Returns a modifiable vector view with the segment sizes in particular slices.
|
|
__cuda_callable__ ConstOffsetsView | getSliceSegmentSizesView () const |
| | Returns a constant vector view with the segment sizes in particular slices.
|
|
__cuda_callable__ IndexType | getStorageSize () const |
| | Returns number of elements that needs to be allocated by a container connected to this segments.
|
|
SlicedEllpackBase & | operator= (const SlicedEllpackBase &)=delete |
| | Copy-assignment operator.
|
|
SlicedEllpackBase & | operator= (SlicedEllpackBase &&)=delete |
| | Move-assignment operator.
|
template<typename Device, typename Index,
ElementsOrganization Organization, int SliceSize>
class TNL::Algorithms::Segments::SlicedEllpackBase< Device, Index, Organization, SliceSize >
SlicedEllpackBase serves as a base class for TNL::Algorithms::Segments::SlicedEllpack and TNL::Algorithms::Segments::SlicedEllpackView.
- Template Parameters
-
| Device | is type of device where the segments will be operating. |
| Index | is type for indexing of the elements managed by the segments. |
| Organization | is the organization of the elements in the segments—either row-major or column-major order. |
| SliceSize | is the size of each slice. |