COO.reduce

COO.reduce(method, axis=0, keepdims=False, **kwargs)

Performs a reduction operation on this array.

Parameters
  • method (numpy.ufunc) – The method to use for performing the reduction.

  • axis (Union[int, Iterable[int]], optional) – The axes along which to perform the reduction. Uses all axes by default.

  • keepdims (bool, optional) – Whether or not to keep the dimensions of the original array.

  • kwargs (dict) – Any extra arguments to pass to the reduction operation.

See also

numpy.ufunc.reduce()

A similar Numpy method.

COO.reduce()

This method implemented on COO arrays.

GCXS.reduce()

This method implemented on GCXS arrays.