matrix.
searchsorted
Find indices where elements of v should be inserted in a to maintain order.
For full documentation, seenumpy.searchsorted
numpy.searchsorted
See also
numpy.matrix.round
numpy.matrix.setfield