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

Method cumsum

ot/backend.py:363–371  ·  view source on GitHub ↗

r""" Returns the cumulative sum of tensor elements over given dimensions. This function follows the api from :any:`numpy.cumsum` See: https://numpy.org/doc/stable/reference/generated/numpy.cumsum.html

(self, a, axis=None)

Source from the content-addressed store, hash-verified

361 raise NotImplementedError()
362
363 def cumsum(self, a, axis=None):
364 r"""
365 Returns the cumulative sum of tensor elements over given dimensions.
366
367 This function follows the api from :any:`numpy.cumsum`
368
369 See: https://numpy.org/doc/stable/reference/generated/numpy.cumsum.html
370 """
371 raise NotImplementedError()
372
373 def max(self, a, axis=None, keepdims=False):
374 r"""

Callers 15

test_empty_backendFunction · 0.95
proj_simplexFunction · 0.45
cumsumMethod · 0.45
cumsumMethod · 0.45
cumsumMethod · 0.45
cumsumMethod · 0.45
cumsumMethod · 0.45
projection_simplexFunction · 0.45
wasserstein_1dFunction · 0.45
binary_search_circleFunction · 0.45
wasserstein1_circleFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36