Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ diag
Method
diag
ot/backend.py:2660–2661 ·
view source on GitHub ↗
(self, a, k=0)
Source
from the content-addressed store, hash-verified
2658
return
cp.meshgrid(a, b)
2659
2660
def
diag(self, a, k=0):
2661
return
cp.diag(a, k)
2662
2663
def
unique(self, a, return_inverse=False):
2664
return
cp.unique(a, return_inverse=return_inverse)
Callers
nothing calls this directly
Calls
1
diag
Method · 0.45
Tested by
no test coverage detected