Re: [Rcpp-devel] inline with classes

2010-10-05 Thread Whit Armstrong
Thanks for the example! that makes everything clear. -Whit 2010/10/5 Dirk Eddelbuettel : > > On 5 October 2010 at 13:21, Whit Armstrong wrote: > | aha, thanks for correcting me. on the inline/Rcpp division of labor. > | > | So, what you are suggesting should have been obvious to me. > | > | I p

Re: [Rcpp-devel] inline with classes

2010-10-05 Thread Dirk Eddelbuettel
On 5 October 2010 at 13:21, Whit Armstrong wrote: | aha, thanks for correcting me. on the inline/Rcpp division of labor. | | So, what you are suggesting should have been obvious to me. | | I pass the class def in the include statement of the inline function? | Is that it? | | I'll ping back aft

Re: [Rcpp-devel] inline with classes

2010-10-05 Thread Whit Armstrong
aha, thanks for correcting me. on the inline/Rcpp division of labor. So, what you are suggesting should have been obvious to me. I pass the class def in the include statement of the inline function? Is that it? I'll ping back after I try this. If this really works, then I think WinBUGS can fina

Re: [Rcpp-devel] inline with classes

2010-10-05 Thread Dirk Eddelbuettel
Hi Whit, On 5 October 2010 at 12:25, Whit Armstrong wrote: | I just reviewed the Rcpp documentation. Great. Now tell us how to make it sticky so that we get you to contribute :) | I see plenty of cfunction/cxxfunction examples, but I'm curious | whether one can provide a class definition inlin

[Rcpp-devel] inline with classes

2010-10-05 Thread Whit Armstrong
I just reviewed the Rcpp documentation. I see plenty of cfunction/cxxfunction examples, but I'm curious whether one can provide a class definition inline in an R script and then initialize an instance of the class and call a method on the class. all inline in R. Is this feature something you all

Re: [Rcpp-devel] Filling NumericMatrix with NumericVectors with apply by row/column?

2010-10-05 Thread Christian Gunning
Sorry for slow reply. > Or perhaps use the "_" thing : > > ret( i, _ ) = ... Is there documentation on _? > Or perhaps have this syntax : > > ret.row(i) = ... > > We aleardy have row member function that returns a Row object, but it > currently does not have a operator=, that could be taken care