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

Method Mapply_3

inst/include/Rcpp/sugar/functions/mapply/mapply_3.h:53–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 typedef typename Rcpp::traits::Extractor<RTYPE_3,NA_3,T_3>::type EXT_3 ;
52
53 Mapply_3( const VEC_1& vec_1_, const VEC_2& vec_2_, const VEC_3& vec_3_, Function fun_ ) :
54 vec_1(vec_1_.get_ref()), vec_2(vec_2_.get_ref()), vec_3(vec_3_.get_ref()), fun(fun_){}
55
56 inline result_type operator[]( R_xlen_t i ) const {
57 return fun( vec_1[i], vec_2[i], vec_3[i] );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected