Suppose I have 3 processes, and each wants to send 3 arrays a0,a1,a2 to processes 0,1, and 2. Given the MPI_Alltoallv interface, that is,
a0,a1,a2
MPI_Alltoallv