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

Method todense

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

Source from the content-addressed store, hash-verified

2745 return a
2746
2747 def todense(self, a):
2748 if self.issparse(a):
2749 return a.toarray()
2750 else:
2751 return a
2752
2753 def where(self, condition, x=None, y=None):
2754 if x is None and y is None:

Callers

nothing calls this directly

Calls 1

issparseMethod · 0.95

Tested by

no test coverage detected