bempp_octree::tools

Function displacements

Source
pub fn displacements(counts: &[i32]) -> Vec<i32>
Expand description

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