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