MCPcopy Create free account
hub / github.com/dask/dask / _cumsum_blocks

Function _cumsum_blocks

dask/array/linalg.py:27–32  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

25
26
27def _cumsum_blocks(it):
28 total = 0
29 for x in it:
30 total_previous = total
31 total += x
32 yield (total_previous, total)
33
34
35def _cumsum_part(last, new):

Callers 1

tsqrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected