tests/test-transform.R

RcppParallel:::test_init()

Rcpp::sourceCpp(system.file("tests/cpp/transform.cpp", package = "RcppParallel"))

m <- matrix(as.numeric(1:1000000), nrow = 1000, ncol = 1000)

assert(all.equal(
   matrixSqrt(m),
   parallelMatrixSqrt(m)
))

Try the RcppParallel package in your browser

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

RcppParallel documentation built on July 27, 2026, 5:08 p.m.