title: MPI matrix transpose
body: <p>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...</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;mpi.h&gt;
  
  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(&amp;argc,&amp;argv);
  MPI_Comm_rank(MPI_COMM_WORLD,&amp;rank);
  MPI_Comm_size(MPI_COMM_WORLD,&amp;size);
  
  if (rank==0)
  {
  //Store first row of the matrix.
  }
  if(size!=4)
  {
   exit(0);
  }
  else
  {
  
  }
  
  MPI_Finalize();
  }
  </code></pre>