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
_ 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
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