Skip to contents

Computes column sums of the matrix stored in a resident_handle, using a GPU-resident reduction when the backend supports it. Falls back to base::colSums on the materialized matrix when no resident reduction is available.

Usage

rh_colSums(h)

Arguments

h

A resident_handle.

Value

Numeric vector of length ncol(h).

Examples

# \donttest{
# requires a backend with residency support (e.g. MLX, OpenCL)
# }