triqs.utility.mpi_nompi.slice_array
- triqs.utility.mpi_nompi.slice_array(A)[source]
Serial slice: return
Aunchanged.The parallel counterpart,
triqs.utility.mpi_mpi4py.slice_array(), returns a view over the first axis ofAcorresponding to the current rank. In serial the whole array belongs to the single rank, so it is returned as-is.- Parameters:
- Anumpy.ndarray
Array to (pretend to) slice.
- Returns:
- numpy.ndarray
Aitself.