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