[Numpy-discussion] Conversion from numarray to numpy

Michał Szpadzik mszpadzik@o2...
Thu Jul 12 05:04:00 CDT 2007


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 just fine. Now it's time to optimize my lib a little :D

Regards


More information about the Numpy-discussion mailing list