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

Method squeeze

ot/backend.py:884–892  ·  view source on GitHub ↗

r""" Remove axes of length one from a. This function follows the api from :any:`numpy.squeeze`. See: https://numpy.org/doc/stable/reference/generated/numpy.squeeze.html

(self, a, axis=None)

Source from the content-addressed store, hash-verified

882 raise NotImplementedError()
883
884 def squeeze(self, a, axis=None):
885 r"""
886 Remove axes of length one from a.
887
888 This function follows the api from :any:`numpy.squeeze`.
889
890 See: https://numpy.org/doc/stable/reference/generated/numpy.squeeze.html
891 """
892 raise NotImplementedError()
893
894 def unsqueeze(self, a, axis):
895 r"""

Callers 11

test_empty_backendFunction · 0.95
squeezeMethod · 0.45
squeezeMethod · 0.45
squeezeMethod · 0.45
logsumexpMethod · 0.45
squeezeMethod · 0.45
squeezeMethod · 0.45
logsumexpFunction · 0.45
test_func_backendsFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36