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
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
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
__