![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
Linearize the index domain for traversing. More...
#include <traverse.hpp>
Static Public Member Functions | |
| static ALPAKA_FN_HOST_ACC constexpr auto | make (auto const &idxRange, auto const &threadSpace, auto const &idxLayout, alpaka::concepts::CVector auto const &cSelect) |
Linearize the index domain for traversing.
Maps each linear index into the M-dimensional index space. Mapping the linear index to a MD-index is increasing the computations (usage of multiplications and additions) and can therefore slow down the performance.
Definition at line 21 of file traverse.hpp.
|
inlinestaticconstexpr |
Definition at line 23 of file traverse.hpp.