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

Method argsort

ot/backend.py:552–560  ·  view source on GitHub ↗

r""" Returns the indices that would sort a tensor. This function follows the api from :any:`numpy.argsort` See: https://numpy.org/doc/stable/reference/generated/numpy.argsort.html

(self, a, axis=None)

Source from the content-addressed store, hash-verified

550 raise NotImplementedError()
551
552 def argsort(self, a, axis=None):
553 r"""
554 Returns the indices that would sort a tensor.
555
556 This function follows the api from :any:`numpy.argsort`
557
558 See: https://numpy.org/doc/stable/reference/generated/numpy.argsort.html
559 """
560 raise NotImplementedError()
561
562 def searchsorted(self, a, v, side="left"):
563 r"""

Callers 15

test_empty_backendFunction · 0.95
argsortMethod · 0.45
argsortMethod · 0.45
argsortMethod · 0.45
argsortMethod · 0.45
uniqueMethod · 0.45
fdaFunction · 0.45
wasserstein_1dFunction · 0.45
emd_1dFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36