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

Method sort

ot/backend.py:542–550  ·  view source on GitHub ↗

r""" Returns a sorted copy of a tensor. This function follows the api from :any:`numpy.sort` See: https://numpy.org/doc/stable/reference/generated/numpy.sort.html

(self, a, axis=-1)

Source from the content-addressed store, hash-verified

540 raise NotImplementedError()
541
542 def sort(self, a, axis=-1):
543 r"""
544 Returns a sorted copy of a tensor.
545
546 This function follows the api from :any:`numpy.sort`
547
548 See: https://numpy.org/doc/stable/reference/generated/numpy.sort.html
549 """
550 raise NotImplementedError()
551
552 def argsort(self, a, axis=None):
553 r"""

Callers 15

test_empty_backendFunction · 0.95
proj_simplexFunction · 0.45
sortMethod · 0.45
sortMethod · 0.45
sortMethod · 0.45
argsortMethod · 0.45
sort2Method · 0.45
sortMethod · 0.45
sortMethod · 0.45
projection_simplexFunction · 0.45
wasserstein_1dFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36
test_random_backendsFunction · 0.36