title: Creating NumPy Matrix by comprehension
body: <p>Say I have two vectors, <code>x</code> is with <code>m</code> entries and <code>y</code> is with <code>n</code> entries. I would like to have a numpy <code>m x n</code> matrix <strong>A</strong>, for which,</p>
  <p><code>A[i][j]== x[i]**y[j]</code></p>
  <p>I know how to create a 2D array with list comprehension for such a problem, but is there a way to do it efficiently using numpy?
  Thanks</p>