mpi_array.globale.gndarray.get_view

gndarray.get_view(slice=None, start=None, stop=None, halo=0)[source]

Returns (ary, extent) pair, where ary is a view from the locale extent array corresponding to the specified extent arguments. If any of the globale slice lies outside the locale extent, then ary is None. The extent element is a mpi_array.distribution.LocaleExtent instance which corresponds to the specified extent arguments.