I have several processes, each computing its own matrix. Finally, I want them to send their solved matrices to the root process, which will literally join them into one big matrix and output this simply in ASCII format into a text file. Is it possible in some elegant way or do I have to iterate through every matrix and "join" it by myself?
Example:
matrix 0:
0 5
4 5
matrix 1:
1 2
3 4
matrix 2:
5 6
8 7
matrix 3:
0 0
2 1
Final "joined" matrix:
0 5 | 1 2
4 5 | 3 4
----+----
5 6 | 0 0
8 7 | 2 1