Computes the mapping of an n-dimensional component id to a linear location id in a uniform manner. More...
Public Member Functions | |
uniform_ndim_to_linear_map (CID &&num_cids, CID &&loc_layout) | |
uniform_ndim_to_linear_map (CID &&num_cids, CID &&cid_offset, CID &&loc_layout) | |
location_type | operator() (CID const &cid) const |
void | update (std::vector< std::tuple< std::pair< ContainerGID, ContainerGID >, CID, location_type > > const &updates, size_t level) |
Method required of all mapping functions. The method is called by the update_distribution method of containers. More... | |
Public Types | |
using | gid_type = CID |
using | index_type = location_type |
Computes the mapping of an n-dimensional component id to a linear location id in a uniform manner.
void stapl::uniform_ndim_to_linear_map< CID, ContainerGID >::update | ( | std::vector< std::tuple< std::pair< ContainerGID, ContainerGID >, CID, location_type > > const & | updates, |
size_t | level | ||
) |
Method required of all mapping functions. The method is called by the update_distribution method of containers.