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

Method sum

ot/backend.py:1175–1176  ·  view source on GitHub ↗
(self, a, axis=None, keepdims=False)

Source from the content-addressed store, hash-verified

1173 return np.eye(N, M, dtype=type_as.dtype)
1174
1175 def sum(self, a, axis=None, keepdims=False):
1176 return np.sum(a, axis, keepdims=keepdims)
1177
1178 def cumsum(self, a, axis=None):
1179 return np.cumsum(a, axis)

Callers 1

get_random_projectionsFunction · 0.95

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected