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

Method coo_matrix

ot/backend.py:1321–1325  ·  view source on GitHub ↗
(self, data, rows, cols, shape=None, type_as=None)

Source from the content-addressed store, hash-verified

1319 return self.rng_.permutation(size)
1320
1321 def coo_matrix(self, data, rows, cols, shape=None, type_as=None):
1322 if type_as is None:
1323 return coo_matrix((data, (rows, cols)), shape=shape)
1324 else:
1325 return coo_matrix((data, (rows, cols)), shape=shape, dtype=type_as.dtype)
1326
1327 def issparse(self, a):
1328 return issparse(a)

Callers 1

coo_matrixMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected