tests/2Dsubset.R

library(RLLVMCompile)


f =
function(x)
{
   x[2, 3] + 1
}

fc = compileFunction(f, DoubleType, list(x = new("MatrixType", elType = DoubleType)))

m = matrix(as.numeric(1:15), 3, 5)
.llvm(fc, m)
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.