MCPcopy Create free account
hub / github.com/PythonOT/POT / todense

Method todense

ot/backend.py:1346–1350  ·  view source on GitHub ↗
(self, a)

Source from the content-addressed store, hash-verified

1344 return a
1345
1346 def todense(self, a):
1347 if self.issparse(a):
1348 return a.toarray()
1349 else:
1350 return a
1351
1352 def where(self, condition, x=None, y=None):
1353 if x is None and y is None:

Callers 1

coo_matrixMethod · 0.95

Calls 1

issparseMethod · 0.95

Tested by

no test coverage detected