COO.sum¶
-
COO.
sum
(axis=None, keepdims=False, dtype=None, out=None)¶ Performs a sum operation along the given axes. Uses all axes by default.
- Parameters
axis (Union[int, Iterable[int]], optional) – The axes along which to sum. Uses all axes by default.
keepdims (bool, optional) – Whether or not to keep the dimensions of the original array.
dtype (numpy.dtype) – The data type of the output array.
- Returns
The reduced output sparse array.
- Return type
See also
numpy.sum
Equivalent numpy function.
scipy.sparse.coo_matrix.sum
Equivalent Scipy function.