Template Numerical Library version\ main:351d08c5f
Loading...
Searching...
No Matches
TNL::Algorithms::SegmentsReductionKernels::EllpackKernel< Index, Device > Struct Template Reference

Public Types

using ConstViewType = EllpackKernel< Index, Device >
using DeviceType = Device
using IndexType = Index
using ViewType = EllpackKernel< Index, Device >

Public Member Functions

__cuda_callable__ ConstViewType getConstView () const
__cuda_callable__ ViewType getView ()
template<typename Segments>
void init (const Segments &segments)
void reset ()

Static Public Member Functions

static std::string getKernelType ()
template<typename SegmentsView, typename Fetch, typename Reduction, typename ResultKeeper, typename Value = typename Segments::detail::FetchLambdaAdapter< Index, Fetch >::ReturnType>
static void reduceAllSegments (const SegmentsView &segments, Fetch &fetch, const Reduction &reduction, ResultKeeper &keeper, const Value &identity=Reduction::template getIdentity< Value >())
template<typename SegmentsView, typename Fetch, typename Reduction, typename ResultKeeper, typename Value = typename Segments::detail::FetchLambdaAdapter< Index, Fetch >::ReturnType>
static void reduceSegments (const SegmentsView &segments, Index begin, Index end, Fetch &fetch, const Reduction &reduction, ResultKeeper &keeper, const Value &identity=Reduction::template getIdentity< Value >())

Member Function Documentation

◆ reduceAllSegments()

template<typename Index, typename Device>
template<typename SegmentsView, typename Fetch, typename Reduction, typename ResultKeeper, typename Value = typename Segments::detail::FetchLambdaAdapter< Index, Fetch >::ReturnType>
void TNL::Algorithms::SegmentsReductionKernels::EllpackKernel< Index, Device >::reduceAllSegments ( const SegmentsView & segments,
Fetch & fetch,
const Reduction & reduction,
ResultKeeper & keeper,
const Value & identity = Reduction::template getIdentity< Value >() )
static
Deprecated
Use TNL::Algorithms::Segments::reduceSegments instead

◆ reduceSegments()

template<typename Index, typename Device>
template<typename SegmentsView, typename Fetch, typename Reduction, typename ResultKeeper, typename Value = typename Segments::detail::FetchLambdaAdapter< Index, Fetch >::ReturnType>
void TNL::Algorithms::SegmentsReductionKernels::EllpackKernel< Index, Device >::reduceSegments ( const SegmentsView & segments,
Index begin,
Index end,
Fetch & fetch,
const Reduction & reduction,
ResultKeeper & keeper,
const Value & identity = Reduction::template getIdentity< Value >() )
static
Deprecated
Use TNL::Algorithms::Segments::reduceSegments instead

The documentation for this struct was generated from the following file:
  • src/TNL/Algorithms/SegmentsReductionKernels/EllpackKernel.h