mpi_array.locale.LndarrayProxy¶
-
class
mpi_array.locale.LndarrayProxy[source]¶ Bases:
objectProxy for
lndarrayinstances. Providespeer_rankviews of the array for parallelism.Methods
calculate_intra_partition(intra_locale_size, ...)Splits extentintoself.intra_locale_sizenumber of tiles.fill(value)Fill the array with a scalar value (excludes ghost elements). fill_h(value)Fill the array with a scalar value (including ghost elements). free()Release locale array memory and assign Noneto self attributes.Attributes
HIThe “high index” indices. LOThe “low index” indices. dtypeA numpy.dtypeobject describing the element type of this array.haloThe number of ghost cells for intra locale partitioning of the extent. intra_partitionA PartitionViewSlicescontaining slices for this rank (ofpeer_comm).intra_partition_dimsA sequence of integers indicating the number of partitions along each axis which determines the per-rank views of the locale extent array. lndarrayAn lndarrayinstance containing array data in (potentially) shared memory.locale_extentA LocaleExtentdescribing the portion of the array assigned to this locale.mdMeta-data object of type NdarrayMetaData.rank_view_hA tile view (including halo elements) of the array for this rank of peer_comm.rank_view_nA tile view of the array for this rank of peer_comm.rank_view_partition_hRank tile view from the paritioning of entire self._lndarray(i.e.rank_view_slice_hSequence of sliceobjects used to generaterank_view_h.rank_view_slice_nSequence of sliceobjects used to generaterank_view_n.shapeThe shape of the locale array (including halo), i.e. view_hThe entire LndarrayProxyview including halo (i.e.view_nView of entire array without halo.