explorations/copyArray.R

library(RLLVMCompile)

copyDoubleArray =
function(src, n)
{
    ans = numeric(n)
    for(i in 1:n)
        ans[i] = src[i]
    ans
}

cp = compileFunction(copyDoubleArray, REALSXPType, list(DoublePtrType, Int32Type))
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.