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

Method flip

ot/backend.py:572–580  ·  view source on GitHub ↗

r""" Reverses the order of elements in a tensor along given dimensions. This function follows the api from :any:`numpy.flip` See: https://numpy.org/doc/stable/reference/generated/numpy.flip.html

(self, a, axis=None)

Source from the content-addressed store, hash-verified

570 raise NotImplementedError()
571
572 def flip(self, a, axis=None):
573 r"""
574 Reverses the order of elements in a tensor along given dimensions.
575
576 This function follows the api from :any:`numpy.flip`
577
578 See: https://numpy.org/doc/stable/reference/generated/numpy.flip.html
579 """
580 raise NotImplementedError()
581
582 def clip(self, a, a_min, a_max):
583 """

Callers 13

test_empty_backendFunction · 0.95
proj_simplexFunction · 0.45
flipMethod · 0.45
flipMethod · 0.45
flipMethod · 0.45
flipMethod · 0.45
flipMethod · 0.45
screenkhornFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36