Declaration of TileMap. More...
#include <Cabana_Grid_SparseIndexSpace.hpp>
Static Public Member Functions | |
| template<typename... Coords> | |
| static KOKKOS_INLINE_FUNCTION constexpr auto | coordToOffset (Coords &&... coords) -> uint64_t |
| Cell ijk <=> Cell Id. | |
| template<typename Key, typename... Coords> | |
| static KOKKOS_INLINE_FUNCTION constexpr void | offsetToCoord (Key &&key, Coords &... coords) |
| (Host/Device) Compute from offset to coordinates | |
Declaration of TileMap.
Tile index space, inside each local tile, mapping cell ijks to cell No.(Lexicographical Order)
| CBits | Bits number (per dimension) to index cells inside each tile |
| Cbits | Number of bits (per dimension) to index the cells inside a tile |
| CNumPerDim | Cell number (per dimension) inside each tile |
| CNumPerTile | Cel number (total) inside each tile |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
(Host/Device) Compute from offset to coordinates
| key | The given single number |
| coords | The output coordinates |