Template Numerical Library version main:e6bb26f
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
TNL::Algorithms::Segments::BiEllpack< Device, Index, IndexAllocator, Organization, WarpSize > Class Template Reference
Collaboration diagram for TNL::Algorithms::Segments::BiEllpack< Device, Index, IndexAllocator, Organization, WarpSize >:
Collaboration graph
[legend]

Public Types

using ConstViewType = typename ViewType::ConstViewType
 
using DeviceType = Device
 
using IndexType = std::remove_const_t< Index >
 
using OffsetsContainer = Containers::Vector< IndexType, DeviceType, IndexType, IndexAllocator >
 
using SegmentViewType = typename ViewType::SegmentViewType
 
template<typename Device_ , typename Index_ >
using ViewTemplate = BiEllpackView< Device_, Index_, Organization, WarpSize >
 
using ViewType = BiEllpackView< Device, Index, Organization, WarpSize >
 

Public Member Functions

 BiEllpack (BiEllpack &&segments) noexcept=default
 
 BiEllpack (const BiEllpack &segments)=default
 
template<typename SizesContainer >
 BiEllpack (const SizesContainer &sizes)
 
template<typename ListIndex >
 BiEllpack (const std::initializer_list< ListIndex > &segmentsSizes)
 
template<typename SizesHolder = OffsetsContainer>
void computeColumnSizes (const SizesHolder &segmentsSizes)
 
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
 
const ConstViewType getConstView () const
 
__cuda_callable__ IndexType getGlobalIndex (IndexType segmentIdx, IndexType localIdx) const
 
__cuda_callable__ IndexType getSegmentsCount () const
 Number of segments.
 
IndexType getSegmentSize (IndexType segmentIdx) const
 
__cuda_callable__ SegmentViewType getSegmentView (IndexType segmentIdx) const
 
__cuda_callable__ IndexType getSize () const
 Number segments.
 
__cuda_callable__ IndexType getStorageSize () const
 
ViewType getView ()
 
void load (File &file)
 
BiEllpackoperator= (const BiEllpack &source)=default
 
template<typename Device_ , typename Index_ , typename IndexAllocator_ , ElementsOrganization Organization_>
BiEllpackoperator= (const BiEllpack< Device_, Index_, IndexAllocator_, Organization_, WarpSize > &source)
 
template<typename Device_ , typename Index_ , typename IndexAllocator_ , ElementsOrganization Organization_>
BiEllpack< Device, Index, IndexAllocator, Organization, WarpSize > & operator= (const BiEllpack< Device_, Index_, IndexAllocator_, Organization_, WarpSize > &source)
 
template<typename SizesHolder = OffsetsContainer>
void performRowBubbleSort (const SizesHolder &segmentsSize)
 
template<typename Fetch >
SegmentsPrinter< BiEllpack, Fetch > print (Fetch &&fetch) const
 
template<typename Fetch >
auto print (Fetch &&fetch) const -> SegmentsPrinter< BiEllpack, Fetch >
 
void printStructure (std::ostream &str) const
 
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 reset ()
 
void save (File &file) const
 
template<typename SizesHolder = OffsetsContainer>
void setSegmentsSizes (const SizesHolder &sizes)
 Set sizes of particular segments.
 

Static Public Member Functions

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

Protected Member Functions

IndexType getGroupLength (IndexType strip, IndexType group) const
 
IndexType getStripLength (IndexType stripIdx) const
 
__cuda_callable__ Index power (const IndexType number, const IndexType exponent) const
 
template<typename SizesHolder = OffsetsContainer>
void verifyRowLengths (const SizesHolder &segmentsSizes)
 
template<typename SizesHolder = OffsetsContainer>
void verifyRowPerm (const SizesHolder &segmentsSizes)
 

Static Protected Member Functions

static constexpr int getLogWarpSize ()
 
static constexpr int getWarpSize ()
 

Protected Attributes

OffsetsContainer groupPointers
 
OffsetsContainer rowPermArray
 
IndexType size = 0
 
IndexType storageSize = 0
 
IndexType virtualRows = 0
 

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