inst/batchtests/col_ops.r

suppressPackageStartupMessages(library(kazaam))

if (comm.rank() == 0){
  x = matrix(1:30, 10)
  cs = colSums(x)
  cm = colMeans(x)
} else {
  x = NULL
}


dx = expand(x)
cs_test = colSums(dx)
cm_test = colMeans(dx)

comm.print(all.equal(cs, cs_test))
comm.print(all.equal(cm, cm_test))


finalize()

Try the kazaam package in your browser

Any scripts or data that you put into this service are public.

kazaam documentation built on May 2, 2019, 8:55 a.m.