title: Convert NumPy vector to 2D array / matrix
body: <p>What is the best way to convert a vector to a 2-dimensional array?  </p>
  
  <p>For example, a vector b of size (10, )</p>
  
  <pre><code>a = rand(10,10)
  b = a[1, :]
  b.shape
  
  Out: (10L,)
  </code></pre>
  
  <p>can be converted to array of size (10,1) as</p>
  
  <pre><code>b = b.reshape(len(b), 1)
  </code></pre>
  
  <p>Is there a more concise way to do it?</p>