title: Optimizing nested for loops in Python for numpy arrays
body: <p>I am trying to optimize a nested for loop in python. Here is the code (Note: inputting the data needs not to be optimized):</p>
  
  <pre><code>Y=numpy.zeros(44100)
  for i in range(len(Y)):
      Y[i]=numpy.sin(i/len(Y))
                                ### /Data^^
  Z=numpy.zeros(len(Y))
  for i in range(len(Y))
      for j in range(len(Y))
          Z[i]+=Y[j]*numpy.sinc(i-j)
  </code></pre>
  
  <p>How to best optimize code written for numpy arrays when nested for loops are involved?</p>
  
  <p>EDIT: For clarity.</p>