Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ trace
Method
trace
ot/backend.py:1403–1404 ·
view source on GitHub ↗
(self, a)
Source
from the content-addressed store, hash-verified
1401
return
np.linalg.solve(a, b)
1402
1403
def
trace(self, a):
1404
return
np.einsum(
"...ii"
, a)
1405
1406
def
inv(self, a):
1407
return
scipy.linalg.inv(a)
Callers
nothing calls this directly
Calls
1
einsum
Method · 0.45
Tested by
no test coverage detected