Hello everyone i am trying to do matrix transpose but i am complete newbie please help me to complete the matrix transpose: Please suggest me if there is any source on internet for learning about mpi. Should i start parallel programming first? Please solve the below blank code...
#include <stdio.h>
#include <mpi.h>
int main(int argc,char* argv[])
{
int rank,size,m[4];
int matrix[4][4]={
{1,2,3,4},
{5,6,7,8},
{9,10,11,12},
{13,14,15,16}
}
int transpose[4][4];
MPI_Init(&argc,&argv);
MPI_Comm_rank(MPI_COMM_WORLD,&rank);
MPI_Comm_size(MPI_COMM_WORLD,&size);
if (rank==0)
{
//Store first row of the matrix.
}
if(size!=4)
{
exit(0);
}
else
{
}
MPI_Finalize();
}