title: How to convert Numpy Array to Python Dictionary with Sequential Keys?
body: <p>I have a matrix in the form of a numpy array like this :</p>
  
  <pre><code>myarray = np.array[[0,400,405,411,415,417,418,0]
                     [0,404,412,419,423,422,422,0]
                     [0,409,416,421,424,425,425,0]
                     [0,411,414,417,420,423,426,0]
                     [0,409,410,410,413,419,424,0]
                     [0,405,404,404,409,414,419,0]]
  </code></pre>
  
  <p>and also empty dictionary :</p>
  
  <pre><code>dict = { }
  </code></pre>
  
  <p>In my case, i want to convert that array to python dictionary where the keys of dictionary are sequential number calculated from up-left value (<code>myarray[0][0]</code>) until bottom-right value (<code>myarray[5][7]</code>) interleaved by row.
  So the result will be like this :</p>
  
  <pre><code>dict = { 1 : 0, 2 : 400, 3: 405, ........, 47 : 419 ,48 : 0 } 
  </code></pre>
  
  <p>is there any solution for this condition?
  wish for your help.. Any help would be very appreciated..</p>