Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ todense
Method
todense
ot/backend.py:2312–2316 ·
view source on GitHub ↗
(self, a)
Source
from the content-addressed store, hash-verified
2310
return
a
2311
2312
def
todense(self, a):
2313
if
self.issparse(a):
2314
return
a.to_dense()
2315
else
:
2316
return
a
2317
2318
def
where(self, condition, x=None, y=None):
2319
if
x is None and y is None:
Callers
1
tocsr
Method · 0.95
Calls
1
issparse
Method · 0.95
Tested by
no test coverage detected