On 8 October 2010 at 23:26, Whit Armstrong wrote:
| Thanks again, Dirk.
| 
| full example (sorry for the verbose post):

Thanks for posting the full example! 

Let us know how you find it and how it helps you with CppBugs.

Just briefly:

| mat X(REAL(XR),100,2);
| mat y(REAL(yr),100,1);

Personally, I like to avoid all UPPERCASE macros but that looks like an
almost reasonable shortcut as you're going straight to Armadillo.

Also in

| fun <- cxxfunction(signature(XR="numeric", yr="numeric"), body=src,
| include=inc, plugin="Rcpp")

I would suggest trying plugin="RcppArmadillo" so that you get the Rcpp
to/from Armadillo data type wrapping etc.  There have been a few
RcppArmadillo examples posted on the list in response to other questions.

Cheers, Dirk

-- 
Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to