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

Method searchsorted

ot/backend.py:2113–2115  ·  view source on GitHub ↗
(self, a, v, side="left")

Source from the content-addressed store, hash-verified

2111 return indices
2112
2113 def searchsorted(self, a, v, side="left"):
2114 right = side != "left"
2115 return torch.searchsorted(a, v, right=right)
2116
2117 def flip(self, a, axis=None):
2118 if axis is None:

Callers

nothing calls this directly

Calls 1

searchsortedMethod · 0.45

Tested by

no test coverage detected