Maps multidimensional subdomains to locations in blocked manner in each dimension.
More...
|
template<typename Partition > |
| multidimensional_mapper (Partition const &part, map_func_type const &mf=map_func_type()) |
| Instantiate the mapper with the partition of the container and optionally, the reverse linearization function. More...
|
|
| multidimensional_mapper (multidimensional_mapper const &other) |
|
cid_view_type | components (value_type const &loc) const |
| Create a view that contains all of the base container IDs that a particular location is responsible for. This is the inverse of mapper::map. More...
|
|
value_type | map (cid_type const &cid) const |
| Map a base container ID to a location. More...
|
|
template<typename CID, typename Traversal = typename default_traversal<tuple_size<CID>::value>::type, typename MF = nd_reverse_linearize<CID, Traversal>>
class stapl::multidimensional_mapper< CID, Traversal, MF >
Maps multidimensional subdomains to locations in blocked manner in each dimension.
- Template Parameters
-
CID | The base container ID type. |
Traversal | The traversal type. |
MF | A reverse linearization mapping function. |
◆ multidimensional_mapper()
template<typename CID , typename Traversal = typename default_traversal<tuple_size<CID>::value>::type, typename MF = nd_reverse_linearize<CID, Traversal>>
template<typename Partition >
Instantiate the mapper with the partition of the container and optionally, the reverse linearization function.
- Parameters
-
part | Partition of the container. |
mf | A function object to perform reverse linearization. |
◆ components()
template<typename CID , typename Traversal = typename default_traversal<tuple_size<CID>::value>::type, typename MF = nd_reverse_linearize<CID, Traversal>>
Create a view that contains all of the base container IDs that a particular location is responsible for. This is the inverse of mapper::map.
- Parameters
-
- Returns
- A view of base container IDs
◆ map()
template<typename CID , typename Traversal = typename default_traversal<tuple_size<CID>::value>::type, typename MF = nd_reverse_linearize<CID, Traversal>>
Map a base container ID to a location.
- Parameters
-
- Returns
- The location that the base container ID is mapped to
The documentation for this class was generated from the following file:
- multidimensional_mapper.hpp