title: python vector * vector------> matrix
body: <p>In the python computer graphics kit, there is a <strong>vec3</strong> type for the representation of three-component vectors, but how can I do the following multiplication:</p>
  
  <p>A three-component vector multiply by its transpose result in a 3*3 matrix, like the following example:</p>
  
  <pre><code>a = vec3(1,1,1)
  matrix_m = a * a.transpose()
  </code></pre>
  
  <p>Anyone knows such a library that can handle multiplying a matrix of dimension 1*3 by another one of dimension 3*1 and result in a matrix of 3*3.</p>
  
  <p>Sorry, I have to clarify a bit more about this. I am talking about matrix math. 
  It is like:</p>
  
  <p>[a0, a1, a2]*[a0, a1, a2]T = [a0*a0, a0*a1, a0*a2; a1*a0, a1*a1, a1*a2;a2*a0, a2*a1, a2*a2]</p>
  
  <p>Maybe I can try write a function myself, it is so straightforward.....</p>