Re: [Numpy-discussion] Conversion from numarray to numpy

2007-07-12 Thread MichaƂ Szpadzik
THX for help and all answers. Code: for i in range(len(myinput)-m+1): cin=tempmatr[:] ctmp=tempmatr[i] xtmp=((numpy.abs(cin-ctmp))<=r)*1 x2tmp=numpy.sum(numpy.transpose(xtmp), axis=0) mcount=numpy.sum((x2tmp==m)*1) allcount=allcount+mcount works ju

Re: [Numpy-discussion] Sum, multiply are slow ?

2007-07-12 Thread David Cournapeau
Keith Goodman wrote: > On 7/12/07, David Cournapeau <[EMAIL PROTECTED]> wrote: > >> While profiling some code, I noticed that sum in numpy is kind of >> slow once you use axis argument: >> > > Here is a related thread: > http://projects.scipy.org/pipermail/numpy-discussion/2007-February/025

Re: [Numpy-discussion] Sum, multiply are slow ?

2007-07-12 Thread Keith Goodman
On 7/12/07, David Cournapeau <[EMAIL PROTECTED]> wrote: > While profiling some code, I noticed that sum in numpy is kind of > slow once you use axis argument: Here is a related thread: http://projects.scipy.org/pipermail/numpy-discussion/2007-February/025903.html __