Implemented numpy.partition via cffi and introselect functions
Sergey M
Branch: Deleted repository:numpy-partition
Branch: pypy/numpy:master
Merged
Merged pull request
Merged in numpy-partition (pull request #7)
Merged in numpy-partition (pull request #7)
I have started implementing numpy.partition for numpypy. I tried to follow the recommendations of Matti Picus https://gist.github.com/mattip/ab34268b049b859554ad . It works only for 4 types so far (improvements to be continued).
I used apply_along_axis to deal with axis parameter. apply_along_axis relies on tolist() that seems has a bug. So I created pypy patch in PR #407 https://bitbucket.org/pypy/pypy/pull-requests/407/ for better results.
The PR help to reduce the number of failed numpy tests:
Pypy 82592-56afe29ed2bf, numpy 8990e6279c9452c935f8e3adfaf7479adcbd35ec:
pypy 82592-56afe29ed2bf, numpypy with this PR
pypy with patch https://bitbucket.org/pypy/pypy/pull-requests/407/, numpypy with this PR