title: How do I get the outer product of two vectors in KDB?
body: <p>I'm trying to get the outer product of two vectors:</p>
  <p>(1 2 3) x (1 2 3)</p>
  <p>This should produce a 3x3 matrix, where each value is <code>ij</code>:</p>
  <pre><code>1 2 3
  2 4 6
  3 6 9
  </code></pre>
  <p><a href="https://en.wikipedia.org/wiki/Outer_product#In_programming_languages" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Outer_product#In_programming_languages</a></p>
  <p>How do I do this in KDB? (the Wikipedia page makes reference to J &amp; APL, so there must be a clever way).</p>
  <p>(I tried <code>x cross x</code>, which produces the right arguments, but doesn't actually calculate the outer product or produce right shape.)</p>