Le 24/04/10 04:43, Xavi de Blas a écrit :
>
> Finally it works!
>
> Yes, it was a mess with my OpenCV libraries, sometimes it's not easy
> to have them working
>
> Knowing that it worked for you it helped me to find the problem
>
> Thanks for your fast response. Soon I will post how I integrated th
And now, with the new macros (see the thread "[Rcpp-devel] any
preprocessor expert around ?" ), one can write the function as:
#include
using namespace Rcpp ;
RCPP_FUNCTION_2( arma::mat, add_mat,
arma::mat y, arma::mat x ){
arma::mat result = x+y;
return result ;
}
alt
Hello,
I've commited some initial code for Rcpp::DataFrame. Interesting bits are:
DataFrame( SEXP ) ;
DataFrame::create( { between 0 and 20 arguments of whatever type wrap
can handle } ) ;
So for example:
> fx <- cppfunction( , '
+ std::vector s(2) ;
+ s[0] = "hello";
+ s[1] = "world";
+
+ I