Inherits RcppFunction.

Public Member Functions | |
| MyRVectorFunc (SEXP fn) | |
| double | getSum (std::vector< double > &v) |
Definition at line 37 of file RcppExample.cpp.
| MyRVectorFunc::MyRVectorFunc | ( | SEXP | fn | ) | [inline] |
Definition at line 39 of file RcppExample.cpp.
| double MyRVectorFunc::getSum | ( | std::vector< double > & | v | ) | [inline] |
Definition at line 43 of file RcppExample.cpp.
References RcppFunction::clearProtectionStack(), RcppFunction::setRVector(), and RcppFunction::vectorCall().
Referenced by Rcpp_Example().

1.6.1