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

Method diag

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

Source from the content-addressed store, hash-verified

3097 return tnp.meshgrid(a, b)
3098
3099 def diag(self, a, k=0):
3100 return tnp.diag(a, k)
3101
3102 def unique(self, a, return_inverse=False):
3103 y, idx = tf.unique(tf.reshape(a, [-1]))

Callers

nothing calls this directly

Calls 1

diagMethod · 0.45

Tested by

no test coverage detected