
Reductions over array margins.
g-reductions.Rdg_sum accumulates 8- and 16-bit integers in i32 (32-bit unsigned in
i64), so a sum does not wrap at the input type's range.
Usage
g_sum(x, dims = NULL, nan_rm = FALSE)
g_mean(x, dims = NULL, nan_rm = FALSE)
g_min(x, dims = NULL, nan_rm = FALSE)
g_max(x, dims = NULL, nan_rm = FALSE)
g_median(x, dims = NULL, nan_rm = FALSE)
g_count(x, dims = NULL)