title: Fortran: extracting columns and rows from a matrix and use them as one dimensional arrays for multiplications
body: <p>Suppose I have matrices <code>A</code> and <code>B</code> both having sizes n x n . Now I want to treat each column of A as a column matrix <code>ColA(i)</code> [i=1,n] and each row of B matrix as a row matrix <code>RowB(j)</code> [j=1,n]. </p>
  
  <p>Now can I use <code>matmul</code> function to construct a new matrix called <code>C</code> whose elements are found by multiplying ColA and RowB for all possible i and j values? Something like</p>
  
  <pre><code>do i = 1, n
   do j= 1, n
      C(i,j) = matmul( ColA(i), RowB(j) ) 
   end do
  end do
  </code></pre>