MCPcopy Create free account
hub / github.com/PythonOT/POT / searchsorted

Method searchsorted

ot/backend.py:562–570  ·  view source on GitHub ↗

r""" Finds indices where elements should be inserted to maintain order in given tensor. This function follows the api from :any:`numpy.searchsorted` See: https://numpy.org/doc/stable/reference/generated/numpy.searchsorted.html

(self, a, v, side="left")

Source from the content-addressed store, hash-verified

560 raise NotImplementedError()
561
562 def searchsorted(self, a, v, side="left"):
563 r"""
564 Finds indices where elements should be inserted to maintain order in given tensor.
565
566 This function follows the api from :any:`numpy.searchsorted`
567
568 See: https://numpy.org/doc/stable/reference/generated/numpy.searchsorted.html
569 """
570 raise NotImplementedError()
571
572 def flip(self, a, axis=None):
573 r"""

Callers 10

test_empty_backendFunction · 0.95
searchsortedMethod · 0.45
searchsortedMethod · 0.45
searchsortedMethod · 0.45
searchsortedMethod · 0.45
searchsortedMethod · 0.45
quantile_functionFunction · 0.45
ot_cost_on_circleFunction · 0.45
test_func_backendsFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36