Displaying 1 result from an estimated 1 matches for "rcppsim".
Did you mean:
rcpps
2011 Dec 05
1
RcppArmadillo compilation error: R CMD SHLIB returns status 1
....n_rows; int n = errors.n_cols;
arma::mat simdata(m,n);
simdata.row(0) = arma::zeros<arma::mat>(1,n);
for (int row=1; row<m; row++) {
simdata.row(row) = simdata.row(row-1)*trans(coeff)+errors.row(row);
}
return Rcpp::wrap(simdata);
'
## create the compiled function
rcppSim <- cxxfunction(signature(a="numeric",e="numeric"),
code,plugin="RcppArmadillo")
### END OF EXAMPLE ###
Executing this inside R, returned the following:
ERROR(s) during compilation: source code errors or compiler configuration errors!
Prog...