col_ops {kazaam} | R Documentation |
Column Operations
Description
Column operations (currently sums/means) for shaq objects.
Usage
## S4 method for signature 'shaq'
colSums(x, na.rm = FALSE, dims = 1L)
## S4 method for signature 'shaq'
colMeans(x, na.rm = FALSE, dims = 1L)
Arguments
x |
A shaq. |
na.rm |
Should |
dims |
Ignored. |
Value
A regular vector.
Communication
The operation consists of a local column sum operation, followed by an
allreduce()
call, quadratic on the number of columns.
Examples
## Not run:
library(kazaam)
x = ranshaq(runif, 10, 3)
cs = colSums(x)
comm.print(cs)
finalize()
## End(Not run)
[Package kazaam version 0.1-0 Index]