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

Function h1

ot/batch/_quadratic.py:122–125  ·  view source on GitHub ↗
(C1)

Source from the content-addressed store, hash-verified

120 return C2**2
121
122 def h1(C1):
123 if C1.ndim == 3:
124 C1 = nx.unsqueeze(C1, -1)
125 return 2 * C1
126
127 def h2(C2):
128 if C2.ndim == 3:

Callers 1

compute_tensor_batchFunction · 0.70

Calls 2

unsqueezeMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected