pub fn displacements(counts: &[i32]) -> Vec<i32>
Compute displacements from a vector of counts.
This is useful for global MPI varcount operations. Let count [ 3, 4, 5]. Then the corresponding displacements are