Template Numerical Library version\ main:b780a9f
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
TNL::Algorithms::Segments::SlicedEllpackView< Device, Index, Organization, SliceSize > Class Template Reference
Collaboration diagram for TNL::Algorithms::Segments::SlicedEllpackView< Device, Index, Organization, SliceSize >:
Collaboration graph
[legend]

Public Types

using ConstViewType = SlicedEllpackView< Device, std::add_const_t< Index >, Organization, SliceSize >
 
using DeviceType = Device
 
using IndexType = std::remove_const_t< Index >
 
using OffsetsView = Containers::VectorView< Index, DeviceType, IndexType >
 
using SegmentViewType = SegmentView< IndexType, Organization >
 
template<typename Device_ , typename Index_ >
using ViewTemplate = SlicedEllpackView< Device_, Index_, Organization, SliceSize >
 
using ViewType = SlicedEllpackView
 

Public Member Functions

__cuda_callable__ SlicedEllpackView (const SlicedEllpackView &slicedEllpackView)=default
 
__cuda_callable__ SlicedEllpackView (IndexType size, IndexType alignedSize, IndexType segmentsCount, OffsetsView &&sliceOffsets, OffsetsView &&sliceSegmentSizes)
 
__cuda_callable__ SlicedEllpackView (SlicedEllpackView &&slicedEllpackView) noexcept=default
 
template<typename Function >
void forAllElements (Function &&f) const
 
template<typename Function >
void forAllSegments (Function &&f) const
 
template<typename Function >
void forElements (IndexType first, IndexType last, Function &&f) const
 
template<typename Function >
void forSegments (IndexType begin, IndexType end, Function &&f) const
 
__cuda_callable__ ConstViewType getConstView () const
 
__cuda_callable__ IndexType getGlobalIndex (Index segmentIdx, Index localIdx) const
 
__cuda_callable__ IndexType getSegmentsCount () const
 
__cuda_callable__ IndexType getSegmentSize (IndexType segmentIdx) const
 
__cuda_callable__ SegmentViewType getSegmentView (IndexType segmentIdx) const
 
__cuda_callable__ IndexType getSize () const
 Number segments.
 
__cuda_callable__ IndexType getStorageSize () const
 
__cuda_callable__ ViewType getView ()
 
void load (File &file)
 
SlicedEllpackViewoperator= (const SlicedEllpackView &view)
 
template<typename Fetch >
SegmentsPrinter< SlicedEllpackView, Fetch > print (Fetch &&fetch) const
 
template<typename Fetch >
auto print (Fetch &&fetch) const -> SegmentsPrinter< SlicedEllpackView, Fetch >
 
template<typename Fetch , typename Reduction , typename ResultKeeper , typename Real >
void reduceAllSegments (Fetch &fetch, const Reduction &reduction, ResultKeeper &keeper, const Real &zero) const
 
template<typename Fetch , typename Reduction , typename ResultKeeper , typename Real >
void reduceSegments (IndexType first, IndexType last, Fetch &fetch, const Reduction &reduction, ResultKeeper &keeper, const Real &zero) const
 
void save (File &file) const
 

Static Public Member Functions

static constexpr ElementsOrganization getOrganization ()
 
static String getSegmentsType ()
 
static std::string getSerializationType ()
 
static constexpr int getSliceSize ()
 
static constexpr bool havePadding ()
 

Protected Attributes

IndexType alignedSize = 0
 
IndexType segmentsCount = 0
 
IndexType size = 0
 
OffsetsView sliceOffsets
 
OffsetsView sliceSegmentSizes
 

The documentation for this class was generated from the following files: