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

Method tocsr

ot/backend.py:812–820  ·  view source on GitHub ↗

r""" Converts this matrix to Compressed Sparse Row format. This function follows the api from :any:`scipy.sparse.coo_matrix.tocsr` See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.coo_matrix.tocsr.html

(self, a)

Source from the content-addressed store, hash-verified

810 raise NotImplementedError()
811
812 def tocsr(self, a):
813 r"""
814 Converts this matrix to Compressed Sparse Row format.
815
816 This function follows the api from :any:`scipy.sparse.coo_matrix.tocsr`
817
818 See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.coo_matrix.tocsr.html
819 """
820 raise NotImplementedError()
821
822 def eliminate_zeros(self, a, threshold=0.0):
823 r"""

Callers 6

test_empty_backendFunction · 0.95
sparse_planMethod · 0.45
tocsrMethod · 0.45
tocsrMethod · 0.45
test_func_backendsFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36