Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ inv
Method
inv
ot/backend.py:2391–2392 ·
view source on GitHub ↗
(self, a)
Source
from the content-addressed store, hash-verified
2389
return
torch.diagonal(a, dim1=-2, dim2=-1).sum(-1)
2390
2391
def
inv(self, a):
2392
return
torch.linalg.inv(a)
2393
2394
def
pinv(self, a, hermitian=False):
2395
return
torch.linalg.pinv(a, hermitian=hermitian)
Callers
nothing calls this directly
Calls
1
inv
Method · 0.45
Tested by
no test coverage detected