Function object to generate neighbors of a location id in a 2D space. More...
Static Public Member Functions | |
static result_type | apply (size_type proc_id, size_type num_procs) |
Returns the neighbors of proc_id . More... | |
Public Types | |
typedef std::size_t | size_type |
typedef std::set< T > | result_type |
Function object to generate neighbors of a location id in a 2D space.
|
static |
Returns the neighbors of proc_id
.
Since no duplicate ids are allowed, the number of returned neighbors may be less than num_procs
.