Re: [Numpy-discussion] Need to eliminate a nested loop

2011-05-16 Thread Elfnor
Thanks that works well Execution time is down from ~3 seconds to 0.06 seconds Eleanor -- View this message in context: http://old.nabble.com/Need-to-eliminate-a-nested-loop-tp31591457p31633558.html Sent from the Numpy-discussion mailing list archive at Nabble.com. ___

Re: [Numpy-discussion] Need to eliminate a nested loop

2011-05-11 Thread eat
Hi, On Wed, May 11, 2011 at 8:28 AM, Elfnor wrote: > > Hi > > The following code produces the desired result but has a slow triple loop > iterating over the matrix multiplication. > > I'm sure it can be eliminated with a neat indexing trick but I can't figure > out how. > > Any suggestions pleas

[Numpy-discussion] Need to eliminate a nested loop

2011-05-10 Thread Elfnor
Hi The following code produces the desired result but has a slow triple loop iterating over the matrix multiplication. I'm sure it can be eliminated with a neat indexing trick but I can't figure out how. Any suggestions please? - import numpy #define domain of functi