Tpetra parallel linear algebra  Version of the Day
Public Member Functions | List of all members
Tpetra::Details::FHT::ComputeRowOffsets< OffsetsViewType, SizeType > Class Template Reference

Parallel scan functor for computing "row" offsets. More...

#include <Tpetra_Details_FixedHashTable_def.hpp>

Public Member Functions

 ComputeRowOffsets (const offsets_view_type &offsets, const counts_view_type &counts)
 Constructor. More...
 
KOKKOS_INLINE_FUNCTION void init (value_type &dst) const
 Set the initial value of the reduction result. More...
 

Detailed Description

template<class OffsetsViewType, class SizeType = typename OffsetsViewType::size_type>
class Tpetra::Details::FHT::ComputeRowOffsets< OffsetsViewType, SizeType >

Parallel scan functor for computing "row" offsets.

Kokkos::parallel_scan functor for computing the row offsets array from the array of counts (which the above functor CountBuckets computes).

Template Parameters
OffsetsViewTypeType of the Kokkos::View specialization used to store the "row" offsets; the output of this functor.
SizeTypeThe parallel loop index type; a built-in integer type. Defaults to the type of the input View's dimension. You may use a shorter type to improve performance.

Definition at line 266 of file Tpetra_Details_FixedHashTable_def.hpp.

Constructor & Destructor Documentation

template<class OffsetsViewType , class SizeType = typename OffsetsViewType::size_type>
Tpetra::Details::FHT::ComputeRowOffsets< OffsetsViewType, SizeType >::ComputeRowOffsets ( const offsets_view_type &  offsets,
const counts_view_type &  counts 
)
inline

Constructor.

Parameters
offsets[out] (Preallocated) offsets; one entry longer than counts
counts[in] View of bucket counts

Definition at line 280 of file Tpetra_Details_FixedHashTable_def.hpp.

Member Function Documentation

template<class OffsetsViewType , class SizeType = typename OffsetsViewType::size_type>
KOKKOS_INLINE_FUNCTION void Tpetra::Details::FHT::ComputeRowOffsets< OffsetsViewType, SizeType >::init ( value_type &  dst) const
inline

Set the initial value of the reduction result.

Definition at line 288 of file Tpetra_Details_FixedHashTable_def.hpp.


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