Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ unique
Method
unique
ot/backend.py:1297–1298 ·
view source on GitHub ↗
(self, a, return_inverse=False)
Source
from the content-addressed store, hash-verified
1295
return
np.diag(a, k)
1296
1297
def
unique(self, a, return_inverse=False):
1298
return
np.unique(a, return_inverse=return_inverse)
1299
1300
def
stack(self, arrays, axis=0):
1301
return
np.stack(arrays, axis)
Callers
nothing calls this directly
Calls
1
unique
Method · 0.45
Tested by
no test coverage detected