MCPcopy
hub / github.com/dask/dask / _cumsum

Function _cumsum

dask/utils.py:2085–2091  ·  view source on GitHub ↗
(seq, initial_zero)

Source from the content-addressed store, hash-verified

2083
2084@functools.lru_cache
2085def _cumsum(seq, initial_zero):
2086 if isinstance(seq, _HashIdWrapper):
2087 seq = seq.wrapped
2088 if initial_zero:
2089 return tuple(toolz.accumulate(add, seq, 0))
2090 else:
2091 return tuple(toolz.accumulate(add, seq))
2092
2093
2094@functools.lru_cache

Callers 1

cached_cumsumFunction · 0.85

Calls 1

accumulateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…