inst/batchtests/crossprod.r

suppressPackageStartupMessages(library(kazaam))

if (comm.rank() == 0){
  x = matrix(rnorm(30), 10)
  cp = crossprod(x)
} else {
  x = NULL
}


dx = expand(x)

cp_test = crossprod(dx)

comm.print(all.equal(cp, cp_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.