title: How to convert a numpy complex array to a two element float array?
body: <p>I have an ndarray in numpy, which contains complex values. I would like to convert each to two float values. I tried it with <code>array</code> <code>real</code> and <code>imag</code>, but only the real parts are in the outputs</p>
  
  <pre><code>import numpy as np
  
  inp_array = np.array([[1,2+3.j,3,4], [5,6,7+1.j,8], [9,10,11,12]], dtype=np.complex64)
  
  out_array = np.array([np.real(inp_array), np.imag(inp_array)])
  </code></pre>
  
  <p>I would like to get this result:</p>
  
  <pre><code>[[[1,0],[2,3],[3,0],[4,0]], [...], [...]]
  </code></pre>