[pypy-dev] C-based numpy's nonzero() has the same performance as its vanilla Python implementation running pypy

Valery Khamenya khamenya at gmail.com
Sat Sep 3 15:22:19 CEST 2011


isn't that cool?

my 1-dimensional vanilla Python implementation was:

lambda v: [i for i,e in enumerate(v) if e != 0]

best regards
--
Valery A.Khamenya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110903/54c7a037/attachment.html>


More information about the pypy-dev mailing list