[Numpy-discussion] Performance of defmatrix.py:103(__array_finalize__)

Kevin Jacobs <jacobs@bioinformed.com> bioinformed at gmail.com
Wed Jul 19 10:24:40 CDT 2006


Hi all,

Is it expected that the following script would spend over half of the total
execution time in defmatrix.py:103(__array_finalize__)?

from numpy import matrix

m=matrix( (1,1) )
for i in range(1000000):
  m[0,0] = 0.


Python version is 2.5b1, NumPy 0.9.8.

More importantly, is there a way to avoid this overhead?

Thanks,
-Kevin Jacobs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060719/f0a20a93/attachment.html 


More information about the Numpy-discussion mailing list