R and Arrayfire via Rcpp
- R packages
- Rcpp
- Arrayfire
- gcc (>= 4.8)
install.packages('devtools')
library(devtools)
install_github(repo = 'kafku/RcppFire@develop')
If you want to try RcppFire with keeping your local enviornment clean, then
dev_mode(on = T)
install_github(repo = 'kafku/RcppFire@develop')
# do something with RcppFire
dev_mode(on = F)
RcppFire, with its default configuration, uses
the CUDA version of Arrayfire. For using OpenCL or CPU version,
invoke install_github
with --with-build-type argument.
# using OpenCL version
install_github(repo = 'kafku/RcppFire@develop',
args = c("--configure-args='--with-build-type=opencl'"))
# using CPU version
install_github(repo = 'kafku/RcppFire@develop',
args = c("--configure-args='--with-build-type=cpu'"))
This package is not actively maintained now. See RcppArrayFire, which is a fork project of this package.
Kazuki Fukui
GPL (>= 2)