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

Method issparse

ot/backend.py:802–810  ·  view source on GitHub ↗

r""" Checks whether or not the input tensor is a sparse tensor. This function follows the api from :any:`scipy.sparse.issparse` See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.issparse.html

(self, a)

Source from the content-addressed store, hash-verified

800 raise NotImplementedError()
801
802 def issparse(self, a):
803 r"""
804 Checks whether or not the input tensor is a sparse tensor.
805
806 This function follows the api from :any:`scipy.sparse.issparse`
807
808 See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.issparse.html
809 """
810 raise NotImplementedError()
811
812 def tocsr(self, a):
813 r"""

Callers 4

test_empty_backendFunction · 0.95
issparseMethod · 0.45
GW_distance_estimationFunction · 0.45
test_func_backendsFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36