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

Method tocsr

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

Source from the content-addressed store, hash-verified

1328 return issparse(a)
1329
1330 def tocsr(self, a):
1331 if self.issparse(a):
1332 return a.tocsr()
1333 else:
1334 return csr_matrix(a)
1335
1336 def eliminate_zeros(self, a, threshold=0.0):
1337 if threshold > 0:

Callers

nothing calls this directly

Calls 2

issparseMethod · 0.95
tocsrMethod · 0.45

Tested by

no test coverage detected