New submission from Christoph Reiter <[email protected]>:

This is needed for matplotlib

##############

import numpy

assert numpy.searchsorted([1,2,3,4,5], 3) == 2
assert numpy.searchsorted([1,2,3,4,5], 3, side='right') == 3

assert numpy.array_equal(
    numpy.searchsorted([1,2,3,4,5], [-10, 10, 2, 3]),
                        numpy.array([0, 5, 1, 2]))

##############

----------
messages: 6590
nosy: lazka, pypy-issue
priority: feature
status: unread
title: numpy: numpy.searchsorted missing

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1706>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to