Template Numerical Library version\ main:f17d0c8
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
TNL::Algorithms::Segments::GrowingSegments< Segments > Struct Template Reference
Inheritance diagram for TNL::Algorithms::Segments::GrowingSegments< Segments >:
Inheritance graph
[legend]
Collaboration diagram for TNL::Algorithms::Segments::GrowingSegments< Segments >:
Collaboration graph
[legend]

Public Types

using DeviceType = typename SegmentsType::DeviceType
 
using FillingVector = Containers::Vector< IndexType, DeviceType, IndexType >
 
using FillingVectorView = typename FillingVector::ViewType
 
using GrowingSegmentsViewType = GrowingSegmentsView< SegmentsType >
 
using IndexType = typename SegmentsType::IndexType
 
using SegmentsConstView = typename SegmentsType::ConstViewType
 
using SegmentsType = Segments
 
using SegmentViewType = typename Segments::SegmentViewType
 

Public Member Functions

template<typename SizesContainer >
 GrowingSegments (const SizesContainer &segmentsSizes)
 
template<typename ListIndex >
 GrowingSegments (const std::initializer_list< ListIndex > &segmentsSizes)
 
void clear ()
 
__cuda_callable__ IndexType deleteSlot (IndexType segmentIdx)
 
template<typename Function >
void forAllElements (Function &&f)
 
template<typename Function >
void forElements (IndexType begin, IndexType end, Function &&f)
 
const FillingVectorgetFilling () const
 
GrowingSegmentsViewType getView ()
 
__cuda_callable__ IndexType newSlot (IndexType segmentIdx)
 
template<typename Fetch , typename Reduction , typename ResultKeeper , typename Value >
void reduceAllSegments (Fetch &fetch, const Reduction &reduction, ResultKeeper &keeper, const Value &identity) const
 
template<typename Fetch , typename Reduction , typename ResultKeeper , typename Value >
void reduceSegments (IndexType begin, IndexType end, Fetch &fetch, const Reduction &reduction, ResultKeeper &keeper, const Value &identity) const
 

The documentation for this struct was generated from the following file: