2012-01-04から1日間の記事一覧
Standard Template LibraryというのはC++の中の仕組みで、std::transformはそのうちの一つであるが、その仕組みを調べる 特に、複数の引数を与えること(複数の返り値を得ること)がどうなっているかについて情報を集める こちら
参考は以下のようにして出るvignett記事の"Using Standard Template Library algorithms" library(Rcpp) library(inline) vignette( "Rcpp-introduction" ) この記事の例題をなぞってみる src <- ' Rcpp::List input(data); Rcpp::Function f(fun); Rcpp::Li…
こちらからの続き RのオブジェクトとC++のそれの対応 R->C++がたくさんある C++->Rは(2行目の)wrap()。(これのみ?) a b c Rcpp::as() used to map SEXP to a C++ object (or proxy) Rcpp::wrap() used to map C++ object to a SEXP Rcpp::List proxy class…