[Rcpp-devel] matrix of float in rcpp

Kaveh Vakili kaveh.vakili at ulb.ac.be
Sat Mar 10 23:15:54 CET 2012


Hi all,

i have a compiling cpp code that i want 
to use in R.

NumericMatrix Rcpp_x(R_x);  
Map<MatrixXd> x(Rcpp_x.begin(),n,p);    

is there a way, with rcpp, to map R_x to a MatrixXf object?
 

Best,


More information about the Rcpp-devel mailing list