powered by
Column operations (currently sums/means) for shaq objects.
# S4 method for shaq colSums(x, na.rm = FALSE, dims = 1L)# S4 method for shaq colMeans(x, na.rm = FALSE, dims = 1L)
# S4 method for shaq colMeans(x, na.rm = FALSE, dims = 1L)
A shaq.
Should NA's be removed?
NA
Ignored.
A regular vector.
The operation consists of a local column sum operation, followed by an allreduce() call, quadratic on the number of columns.
allreduce()
library(kazaam) x = ranshaq(runif, 10, 3) cs = colSums(x) comm.print(cs) finalize()
Run the code above in your browser using DataLab