Re: [Numpy-discussion] Optical autocorrelation calculated with numpy is slow

2009-03-31 Thread Jochen S
On Tue, Mar 31, 2009 at 8:54 PM, Jochen S wrote: > On Tue, Mar 31, 2009 at 7:13 AM, João Luís Silva wrote: > >> Hi, >> > > >> I wrote a script to calculate the *optical* autocorrelation of an >> electric field. It's like the autocorrelation, but sums

Re: [Numpy-discussion] Optical autocorrelation calculated with numpy is slow

2009-03-31 Thread Jochen S
On Tue, Mar 31, 2009 at 7:13 AM, João Luís Silva wrote: > Hi, > > I wrote a script to calculate the *optical* autocorrelation of an > electric field. It's like the autocorrelation, but sums the fields > instead of multiplying them. I'm calculating > > I(tau) = integral( abs(E(t)+E(t-tau))**2,t=