23#ifndef Rcpp__sugar__mapply_2_h
24#define Rcpp__sugar__mapply_2_h
30 bool NA_1,
typename T_1,
31 bool NA_2,
typename T_2,
35 Rcpp::traits::r_sexptype_traits<
36 typename ::Rcpp::traits::result_of<Function, T_1, T_2>::type
39 Mapply_2<RTYPE,NA_1,T_1,NA_2,T_2,Function>
42 typedef typename ::Rcpp::traits::result_of<Function, T_1, T_2>::type
result_type ;
50 inline R_xlen_t
size()
const {
return vec_1.size() ; }
59 bool NA_1,
typename T_1,
65 Rcpp::traits::r_sexptype_traits<
66 typename ::Rcpp::traits::result_of<Function, T_1>::type
69 Mapply_2_Vector_Primitive<RTYPE,NA_1,T_1,PRIM_2,Function>
73 typedef typename ::Rcpp::traits::result_of<Function, T_1>::type
result_type ;
81 inline R_xlen_t
size()
const {
return vec_1.size() ; }
91 bool NA_2,
typename T_2,
96 Rcpp::traits::r_sexptype_traits<
97 typename ::Rcpp::traits::result_of<Function, T_2>::type
100 Mapply_2_Primitive_Vector<RTYPE,PRIM_1,NA_2,T_2,Function>
104 typedef typename ::Rcpp::traits::result_of<Function, T_2>::type
result_type ;
125template <
int RTYPE,
bool NA_1,
typename T_1,
bool NA_2,
typename T_2,
typename Function >
131template <
int RTYPE,
bool NA_1,
typename T_1,
typename Function >
132inline sugar::Mapply_2_Vector_Primitive<RTYPE,NA_1,T_1,double,Function>
137template <
int RTYPE,
bool NA_2,
typename T_2,
typename Function >
138inline sugar::Mapply_2_Primitive_Vector<RTYPE,double, NA_2,T_2,Function>
result_type operator[](R_xlen_t i) const
Mapply_2_Primitive_Vector(PRIM_1 prim_1_, const T_2 &vec_2_, Function fun_)
::Rcpp::traits::result_of< Function, T_2 >::type result_type
result_type operator[](R_xlen_t i) const
::Rcpp::traits::result_of< Function, T_1 >::type result_type
Mapply_2_Vector_Primitive(const T_1 &vec_1_, PRIM_2 prim_2_, Function fun_)
::Rcpp::traits::result_of< Function, T_1, T_2 >::type result_type
result_type operator[](R_xlen_t i) const
Mapply_2(const T_1 &vec_1_, const T_2 &vec_2_, Function fun_)
Function_Impl< PreserveStorage > Function
sugar::Mapply_2< RTYPE, NA_1, T_1, NA_2, T_2, Function > mapply(const Rcpp::VectorBase< RTYPE, NA_1, T_1 > &t1, const Rcpp::VectorBase< RTYPE, NA_2, T_2 > &t2, Function fun)