tests/simpleSEXP.R

library(RLLVMCompile)
f = function(x) { x }
ty = REALSXPType
fc = compileFunction(f, ty, list(ty), name = "f")

x = rnorm(10)
y = .llvm(fc, x)
stopifnot(identical(x, y))
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.