search for: n_xa

Displaying 1 result from an estimated 1 matches for "n_xa".

Did you mean: _xa
2011 Oct 12
1
Error in Rcpp/inline (Windows XP)
...ne, I am just trying to use Rcpp in my computer, and I would like to try a simple example from website, but R keeps reporting me error. I am using Windows XP, and has installed Rtools and GSI. Here is the response: > src = ' + Rcpp::NumericVector xa(a); + Rcpp::NumericVector xb(b); + int n_xa = xa.size(); + int n_xb = xb.size(); + + Rcpp::NumericVector xab(n_xa + n_xb - 1); + + for (int i = 0; i < n_xa; i++) + for (int j = 0; j < n_xb; j++) + xab[i + j] += xa[i] * xb[j]; + + return xab; + ' > > fun = cxxfunction( + signature(a = "numeric", b...