title: How do I combine two numpy arrays element wise in python?
body: <p>I have two numpy arrays:</p>
  
  <pre><code>A = np.array([1, 3, 5, 7])
  B = np.array([2, 4, 6, 8])
  </code></pre>
  
  <p>and I want to get the following from combining the two:</p>
  
  <pre><code>C = [1, 2, 3, 4, 5, 6, 7, 8]
  </code></pre>
  
  <p>I'm able to get something close by using <code>zip</code>, but not quite what I'm looking for:</p>
  
  <pre><code>&gt;&gt;&gt; zip(A, B)
  [(1, 2), (3, 4), (5, 6), (7, 8)]
  </code></pre>
  
  <p>How do I combine the two numpy arrays element wise?</p>
  
  <hr>
  
  <p>I did a quick test of 50,000 elements in each array (100,000 combined elements).  Here are the results:</p>
  
  <pre><code>User Ma3x:      Time of execution: 0.0343832323429      Valid Array?:  True
  User mishik:    Time of execution: 0.0439064509613      Valid Array?:  True
  User Jaime:     Time of execution: 0.02767023558        Valid Array?:  True
  </code></pre>
  
  <p><sup>Tested using Python 2.7, Windows 7 Enterprise 64-bit, Intel Core i7 2720QM @2.2 Ghz Sandy Bridge, 8 GB Mem</sup></p>