triqs.utility.mpi_nompi.slice_array

triqs.utility.mpi_nompi.slice_array(A)[source]

Serial slice: return A unchanged.

The parallel counterpart, triqs.utility.mpi_mpi4py.slice_array(), returns a view over the first axis of A corresponding 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

A itself.