inst/batchtests/cov.r

suppressPackageStartupMessages(library(kazaam))

if (comm.rank() == 0){
  set.seed(1234)
  x = matrix(rnorm(30), 10)
  cv = cov(x)
  cr = cor(x)
} else {
  x = NULL
}


dx = expand(x)

cv_test = cov(dx)
cr_test = cor(dx)

comm.print(all.equal(cv, cv_test))
comm.print(all.equal(cr, cr_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.