|
| constexpr | IdxRange (T_Begin const &begin, T_End const &end) |
| constexpr | IdxRange (T_Begin const &begin, T_End const &end, T_Stride const &stride) |
| constexpr | IdxRange (T_End const &extent) |
| constexpr auto | begin () const |
| | Begin iterator to iterate all positions in the range.
|
| constexpr auto | distance () const |
| constexpr auto | end () const |
| template<concepts::TypeOrVector< typename T_End::type > T_OpType> |
| ALPAKA_FN_HOST_ACC constexpr auto | operator% (T_OpType const &rhs) const |
| template<concepts::TypeOrVector< typename T_End::type > T_OpType> |
| ALPAKA_FN_HOST_ACC constexpr auto | operator<< (T_OpType const &rhs) const |
| template<concepts::TypeOrVector< typename T_End::type > T_OpType> |
| ALPAKA_FN_HOST_ACC constexpr auto | operator>> (T_OpType const &rhs) const |
| std::string | toString (std::string const separator=",", std::string const enclosings="{}") const |
template<concepts::VectorOrScalar T_End, concepts::Vector T_Begin = typename T_End::UniVec, concepts::Vector T_Stride = typename T_End::UniVec>
struct alpaka::IdxRange< T_End, T_Begin, T_Stride >
Definition at line 22 of file IdxRange.hpp.
template<concepts::VectorOrScalar T_End, concepts::Vector T_Begin = typename T_End::UniVec, concepts::Vector T_Stride = typename T_End::UniVec>
Begin iterator to iterate all positions in the range.
It first iterates the fastest index (the one on the far right -> x-dimension) and then moves sequentially to the slowest index (the one on the far left) until it reaches the end.
If you want to iterate the index in parallel with many threads, use the function alpaka::onAcc::makeIdxMap().
- Returns
- Begin iterator
Definition at line 88 of file IdxRange.hpp.