title: TypeError: 'numpy.ndarray' object is not callable while extracting index and elements are stored in different array in python
body: <p>When i execute the following line</p>
  
  <pre><code>u_padded(index)
  </code></pre>
  
  <p>I got the below error:</p>
  
  <p><code>TypeError: 'numpy.ndarray' object is not callable</code>.</p>
  
  <p>u_padded is a row numpy array having 1 row and 3024 columns.
  index is a numpy array having 100 rows and 2016 columns.
  What i am trying to do is that the index of each element in u_padded matrix is stored
  in index array.In particular if i am trying to extract a element from u_paddedthen index should come from index matrix.
  And the resulting matrix should be of the size of index array size i,e; (100,2016).
  Plz suggest how to do this.</p>
  
  <p>Thanks,</p>
  
  <p>Manas</p>