Re: [Rcpp-devel] rcpp sugar elementary question

2013-02-19 Thread Bharath Govindarajan
Thanks a lot. That helped. Regards Bharath On Tue, Feb 19, 2013 at 10:53 AM, Romain Francois wrote: > _ is defined in the Rcpp namespace, so perhaps you want to add : > > using namespace Rcpp ; > > somewhere on top. > > Also, you could use mat.row(1) instead of mat(1,_) > > Romain > > Le 19/02/1

Re: [Rcpp-devel] rcpp sugar elementary question

2013-02-19 Thread Romain Francois
_ is defined in the Rcpp namespace, so perhaps you want to add : using namespace Rcpp ; somewhere on top. Also, you could use mat.row(1) instead of mat(1,_) Romain Le 19/02/13 16:49, Bharath Govindarajan a écrit : Hi , I am trying a simple example to assign entire rows to a Rcpp::NumericMat

[Rcpp-devel] rcpp sugar elementary question

2013-02-19 Thread Bharath Govindarajan
Hi , I am trying a simple example to assign entire rows to a Rcpp::NumericMatrix. I read the Rcpp sugar document and looked at a few online examples. My simple code below produces errors: #include #include using std::cout; using std:endl; // [[Rcpp::export] void test() { Rcpp::Nume