Re: [问题] Rcpp 初学

楼主: celestialgod (天)   2015-01-27 20:24:02
※ 引述《gsuper (Logit(odds))》之铭言:
: cppFunction(
: '
: int fx(NumericVector x)
: { int ss = x.size();
: return ss;
: }
: '
: )
:
作者: Wush978 (拒看低质媒体)   2015-01-27 21:06:00
NumericVector是Rcpp定义的R中定义SEXP和相关, 如REAL等宏供C使用Rcpp提供c++物件带来的好处,提供如NumericVector等物件让我们用的更简单

Links booklink

Contact Us: admin [ a t ] ucptt.com