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

Method diag

ot/backend.py:1294–1295  ·  view source on GitHub ↗
(self, a, k=0)

Source from the content-addressed store, hash-verified

1292 return np.meshgrid(a, b)
1293
1294 def diag(self, a, k=0):
1295 return np.diag(a, k)
1296
1297 def unique(self, a, return_inverse=False):
1298 return np.unique(a, return_inverse=return_inverse)

Callers

nothing calls this directly

Calls 1

diagMethod · 0.45

Tested by

no test coverage detected