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

Method tocsr

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

Source from the content-addressed store, hash-verified

2729 return cupyx.scipy.sparse.issparse(a)
2730
2731 def tocsr(self, a):
2732 if self.issparse(a):
2733 return a.tocsr()
2734 else:
2735 return cupyx.scipy.sparse.csr_matrix(a)
2736
2737 def eliminate_zeros(self, a, threshold=0.0):
2738 if threshold > 0:

Callers

nothing calls this directly

Calls 2

issparseMethod · 0.95
tocsrMethod · 0.45

Tested by

no test coverage detected