title: Building an array of tuples as elements
body: <p>I have</p>
  
  <pre><code>x = np.arange(0, 4, 1)
  y = np.arange(0, 4, 1)
  </code></pre>
  
  <p>and I want</p>
  
  <pre><code>array([[(0,0), (0,1), (0,2), (0,3)],
         [(1,0), (1,1), (1,2), (1,3)],
         [(2,0), (2,1), (2,2), (2,3)],
         [(3,0), (3,1), (3,2), (3,3)]
        ])
  </code></pre>
  
  <p><strong>Please note, that I want to have tuples on the lowest level! This is not an array of grade 3! This is an array of grade 2 with tuples as elements!</strong></p>
  
  <p>The numbers 0 to 3 are just an example. In the real situation it would be floats. After that I want to use those float-tuples as parameter to a Factory function that produces objects that replace those tuples with the objects.</p>
  
  <p>For now the question is: How do I get this array of tuples?</p>
  
  <p>I looked into <a href="https://stackoverflow.com/questions/17960441/in-numpy-how-to-zip-two-2-d-arrays">in Numpy, how to zip two 2-D arrays?</a> but this did not work, as my comment reveals.</p>