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

Method transpose

ot/backend.py:1074–1080  ·  view source on GitHub ↗

r""" Returns a tensor that is a transposed version of a. The given dimensions dim0 and dim1 are swapped. See: https://numpy.org/doc/stable/reference/generated/numpy.transpose.html

(self, a, axes=None)

Source from the content-addressed store, hash-verified

1072 raise NotImplementedError()
1073
1074 def transpose(self, a, axes=None):
1075 r"""
1076 Returns a tensor that is a transposed version of a. The given dimensions dim0 and dim1 are swapped.
1077
1078 See: https://numpy.org/doc/stable/reference/generated/numpy.transpose.html
1079 """
1080 raise NotImplementedError()
1081
1082 def matmul(self, a, b):
1083 r"""

Callers 15

test_empty_backendFunction · 0.95
sinkhorn_low_rank_kernelFunction · 0.45
euclidean_distancesFunction · 0.45
distFunction · 0.45
proj_SDPFunction · 0.45
transposeMethod · 0.45
transposeMethod · 0.45
sqrtmMethod · 0.45
transposeMethod · 0.45
transposeMethod · 0.45

Calls

no outgoing calls

Tested by 7

test_empty_backendFunction · 0.76
test_projections_stiefelFunction · 0.36
test_func_backendsFunction · 0.36
test_exp_buresFunction · 0.36
get_gmmsFunction · 0.36