title: matrix multiplication of arrays in python
body: <p>I feel a bit silly asking this, but I can't seem to find the answer</p>
  
  <p>Using arrays in Numpy I want to multiply a 3X1 array by 1X3 array and get a 3X3 array as a results, but because dot function always treats the first element as a column vector and the second as a row vector I can' seem to get it to work, I have to therefore use matrices.</p>
  
  <pre><code>A=array([1,2,3])  
  print "Amat=",dot(A,A)  
  print "A2mat=",dot(A.transpose(),A)  
  print "A3mat=",dot(A,A.transpose())  
  u2=mat([ux,uy,uz])  
  print "u2mat=", u2.transpose()*u2  
  </code></pre>
  
  <p>And the outputs:</p>
  
  <pre><code>Amat= 14  
  A2mat= 14  
  A3mat= 14  
  u2mat=  
   [[ 0.  0.  0.]  
          [ 0.  0.  0.]  
          [ 0.  0.  1.]]
  </code></pre>