mpi_array.update.UpdatesForRedistribute¶
-
class
mpi_array.update.
UpdatesForRedistribute
(dst_distrib, src_distrib, peer_rank_translator=None)[source]¶ Bases:
object
Collection of update extents for re-distribution of array elements from one distribution to another.
Methods
__init__
(dst_distrib, src_distrib[, ...])calc_intersection_split
(dst_extent, src_extent)Calculates intersection between dst_extent
and {src_extent}.check_updates
()Runs consistency checks on the calculated updates, assumes that the dst_distrib
andsrc_distrib
distributed as a partitioning (no locale extent overlaps except for halo).create_pair_extent_update
(dst_extent, ...)Factory method for creating PairExtentUpdate
objects.get_cpy2_src_extents
(dst_inter_locale_rank)initialise
()initialise_cpy2_updates
()initialise_rget_updates
()initialise_updates
()