How would I go about gathering a partitioned MPI matrix?
Initially I have a matrix which I break down into several row and column-wise sub-matrices, used for the floyd warshall algorithm.
When I gather the sub-matrices they come unordered.
Instead of getting values that would fit in my original matrix
M[ij] 00, 01, 02, 03, 10, 11...
I get them in the order of the sub matrix, (imagine sub-matrix is 2x2)
00,01,10,11,02,03,12,13
How can I reorder the unsorted floyd matrix?