我正在尝试使用AWS EMR版本5.29中的sparkR shell安装RcppArmadillo。这是我的sessionInfo() - R version 3.4.1 (2017-06-30)Running under: Amazon Linux AMI 2018.03
BLAS/LAPACK: /usr/lib64
我试图用RcppArmadillo反演一个复方阵:// [[Rcpp::depends(RcppArmadillo)]]
using namespace如果我将cx_mat替换为mat,那么它编译和工作都很好,但是它只适用于实际的矩阵。使用inv()会引发相同的编译错误。有趣的是,使用伪逆pinv()通过编译,但是结果与R的solve()略有不同。# include <RcppArmadillo</em
我正在尝试使用RcppArmadillo创建一个共享对象,并且很难让编译器找到所有的标头。这个问题与我的代码中RcppArmadillo的实际使用无关。
我正在Linux/Ubuntu上运行。In file included from /server/linux/lib/R/3.0/x86_64/site-library/RcppArmadillo/include