MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / Sapply

Method Sapply

inst/include/Rcpp/sugar/functions/sapply.h:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 typedef typename Rcpp::traits::Extractor< RTYPE, NA, T>::type EXT ;
46
47 Sapply( const VEC& vec_, Function fun_ ) : vec(vec_.get_ref()), fun(fun_){
48 RCPP_DEBUG_1( "Sapply With Converter = %s", DEMANGLE(Sapply) )
49 RCPP_DEBUG_1( "Sapply Converter = %s", DEMANGLE(converter_type) )
50 }
51
52 inline STORAGE operator[]( R_xlen_t i ) const {
53 STORAGE res = converter_type::get( fun( vec[i] ) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected