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