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

Function transpose

ot/batch/_quadratic.py:575–578  ·  view source on GitHub ↗
(C, nx=None)

Source from the content-addressed store, hash-verified

573
574
575def transpose(C, nx=None):
576 if nx is None:
577 nx = get_backend(C)
578 return nx.transpose(C, (0, 2, 1)) if C.ndim == 3 else nx.transpose(C, (0, 2, 1, 3))
579
580
581def compute_const_from_marginals(fC1, fC2, a, b, nx=None):

Callers 3

solve_gromov_batchFunction · 0.85
compute_tensor_batchFunction · 0.85
tensor_product_batchFunction · 0.85

Calls 2

get_backendFunction · 0.90
transposeMethod · 0.45

Tested by

no test coverage detected