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