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

Method Mapply_2

inst/include/Rcpp/sugar/functions/mapply/mapply_2.h:44–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 typedef typename ::Rcpp::traits::result_of<Function, T_1, T_2>::type result_type ;
43
44 Mapply_2( const T_1& vec_1_, const T_2& vec_2_, Function fun_ ) :
45 vec_1(vec_1_), vec_2(vec_2_), fun(fun_){}
46
47 inline result_type operator[]( R_xlen_t i ) const {
48 return fun( vec_1[i], vec_2[i] );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected