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

Method unsqueeze

ot/backend.py:894–902  ·  view source on GitHub ↗

r""" Add a dimension of size one at the specified axis. This function follows the api from :any:`numpy.expand_dims`. See: https://numpy.org/doc/stable/reference/generated/numpy.expand_dims.html

(self, a, axis)

Source from the content-addressed store, hash-verified

892 raise NotImplementedError()
893
894 def unsqueeze(self, a, axis):
895 r"""
896 Add a dimension of size one at the specified axis.
897
898 This function follows the api from :any:`numpy.expand_dims`.
899
900 See: https://numpy.org/doc/stable/reference/generated/numpy.expand_dims.html
901 """
902 raise NotImplementedError()
903
904 def bitsize(self, type_as):
905 r"""

Callers 5

test_empty_backendFunction · 0.95
unsqueezeMethod · 0.45
h1Function · 0.45
h2Function · 0.45
test_func_backendsFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36