title: What is an efficient way to convert arrays/lists to dictionaries?
body: <p>I'm trying to convert array information into a list in the most efficient (meaning the fastest) way possible.  </p>
  
  <p>I have a list that I call node_map, which I want to be the keys for the dictionary, then a 3D array of node_coordinates (node_coords_tmp) that I want to associate with the node_map.</p>
  
  <p>Node_map looks like:</p>
  
  <pre><code>[1,2,3,4,5]
  </code></pre>
  
  <p>Node_coords is reported back when printing initially as:</p>
  
  <pre><code>(&lt;exodus.c_double_Array_8352100 object at 0x2c2d8c0&gt;, &lt;exodus.c_double_Array_8352100 object at 0x2c2d5f0&gt;, &lt;exodus.c_double_Array_8352100 object at 0x2c2d560&gt;)
  </code></pre>
  
  <p>Initially I filled the dictionary like this:</p>
  
  <pre><code>    for ct,i in enumerate(node_map):
          node_coords[i] = [node_coords_tmp[0][ct],node_coords_tmp[1][ct],node_coords_tmp[2][ct]]
  </code></pre>
  
  <p>This did what I wanted, but was slower than I'd like for the size of the arrays I'm dealing with.  Is there a better way to do this using numpy or a different form?  Thanks.</p>