[Rcpp-devel] inline with classes

Whit Armstrong armstrong.whit at gmail.com
Thu Nov 4 18:03:36 CET 2010


Very cool that you guys used my example in your Google Tech Talk.

Thanks for the continued hard work on Rcpp!

-Whit


2010/10/9 Dirk Eddelbuettel <edd at debian.org>:
>
> 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 | edd at debian.org | http://dirk.eddelbuettel.com
>


More information about the Rcpp-devel mailing list