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

Method sum

dask/array/core.py:2587–2606  ·  view source on GitHub ↗

Return the sum of the array elements over the given axis. Refer to :func:`dask.array.sum` for full documentation. See Also -------- dask.array.sum : equivalent function

(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None)

Source from the content-addressed store, hash-verified

2585 )
2586
2587 def sum(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
2588 """
2589 Return the sum of the array elements over the given axis.
2590
2591 Refer to :func:`dask.array.sum` for full documentation.
2592
2593 See Also
2594 --------
2595 dask.array.sum : equivalent function
2596 """
2597 from dask.array.reductions import sum
2598
2599 return sum(
2600 self,
2601 axis=axis,
2602 dtype=dtype,
2603 keepdims=keepdims,
2604 split_every=split_every,
2605 out=out,
2606 )
2607
2608 def trace(self, offset=0, axis1=0, axis2=1, dtype=None):
2609 """Return the sum along diagonals of the array.

Callers 15

histogramFunction · 0.95
histogramddFunction · 0.95
lstsqFunction · 0.45
normFunction · 0.45
meta_from_arrayFunction · 0.45
svd_flipFunction · 0.45
einsumFunction · 0.45
sumFunction · 0.45
mean_combineFunction · 0.45
mean_aggFunction · 0.45

Calls 1

sumFunction · 0.90

Tested by

no test coverage detected