Data describing the bin sizes and offsets resulting from a binning operation.
More...
#include <Cabana_Sort.hpp>
|
using | memory_space = typename MemorySpace::memory_space |
| Memory space.
|
|
using | execution_space = typename memory_space::execution_space |
| Default execution space.
|
|
using | size_type = typename memory_space::size_type |
| Memory space size type.
|
|
using | CountView = Kokkos::View<const int*, memory_space> |
| Binning view type.
|
|
using | OffsetView = Kokkos::View<size_type*, memory_space> |
| Offset view type.
|
|
|
| BinningData () |
| Default constructor.
|
|
| BinningData (const std::size_t begin, const std::size_t end, CountView counts, OffsetView offsets, OffsetView permute_vector) |
| Constructor initializing from Kokkos BinSort data.
|
|
KOKKOS_INLINE_FUNCTION int | numBin () const |
| Get the number of bins.
|
|
KOKKOS_INLINE_FUNCTION int | binSize (const size_type bin_id) const |
| Given a bin get the number of tuples it contains.
|
|
KOKKOS_INLINE_FUNCTION size_type | binOffset (const size_type bin_id) const |
| Given a bin get the tuple index at which it sorts.
|
|
KOKKOS_INLINE_FUNCTION size_type | permutation (const size_type tuple_id) const |
| Given a local tuple id in the binned layout, get the id of the tuple in the old (unbinned) layout.
|
|
KOKKOS_INLINE_FUNCTION std::size_t | rangeBegin () const |
| The beginning tuple index in the binning.
|
|
KOKKOS_INLINE_FUNCTION std::size_t | rangeEnd () const |
| The ending tuple index in the binning.
|
|
template<class MemorySpace>
class Cabana::BinningData< MemorySpace >
Data describing the bin sizes and offsets resulting from a binning operation.
◆ BinningData()
template<class MemorySpace>
Constructor initializing from Kokkos BinSort data.
- Parameters
-
begin | The beginning index of the range to sort. |
end | The end index of the range to sort. |
counts | Binning counts. |
offsets | Binning offsets. |
permute_vector | Permutation vector. |
◆ binOffset()
template<class MemorySpace>
Given a bin get the tuple index at which it sorts.
- Parameters
-
- Returns
- The starting tuple index of the bin.
◆ binSize()
template<class MemorySpace>
Given a bin get the number of tuples it contains.
- Parameters
-
- Returns
- The number of tuples in the bin.
◆ numBin()
template<class MemorySpace>
Get the number of bins.
- Returns
- The number of bins.
The documentation for this class was generated from the following file: