Tpetra parallel linear algebra
Version of the Day
|
Parallel for functor for counting "buckets" in the FixedHashTable. More...
#include <Tpetra_Details_FixedHashTable_def.hpp>
Public Member Functions | |
CountBuckets (const counts_view_type &counts, const keys_view_type &keys, const size_type size) | |
Constructor. More... | |
KOKKOS_INLINE_FUNCTION void | operator() (const size_type &i) const |
Do this for every entry of keys_ . More... | |
Parallel for functor for counting "buckets" in the FixedHashTable.
CountsViewType | Type of the Kokkos::View specialization used to store the bucket counts; the output of this functor. |
KeysViewType | Type of the Kokkos::View specialization used to store the keys; the input of this functor. |
SizeType | The 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 165 of file Tpetra_Details_FixedHashTable_def.hpp.
|
inline |
Constructor.
counts | [out] (Preallocated) View of the bucket counts |
keys | [in] View of the keys |
size | [in] Number of buckets; length of counts |
Definition at line 187 of file Tpetra_Details_FixedHashTable_def.hpp.
|
inline |
Do this for every entry of keys_
.
Count the number of keys in keys_
that hash to the same value.
Definition at line 200 of file Tpetra_Details_FixedHashTable_def.hpp.