[Rcpp-commits] r2218 - pkg/Rcpp/inst/include/Rcpp/sugar/functions
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Sep 27 16:13:34 CEST 2010
Author: romain
Date: 2010-09-27 16:13:34 +0200 (Mon, 27 Sep 2010)
New Revision: 2218
Modified:
pkg/Rcpp/inst/include/Rcpp/sugar/functions/sapply.h
Log:
identify and avoid unnecesary conversions in sapply
Modified: pkg/Rcpp/inst/include/Rcpp/sugar/functions/sapply.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/sugar/functions/sapply.h 2010-09-27 14:12:05 UTC (rev 2217)
+++ pkg/Rcpp/inst/include/Rcpp/sugar/functions/sapply.h 2010-09-27 14:13:34 UTC (rev 2218)
@@ -59,12 +59,12 @@
template <int RTYPE, bool NA, typename T, typename Function>
-class Sapply<RTYPE,NA,T,Function,false> : public VectorBase<
+class Sapply<RTYPE,NA,T,Function,true> : public VectorBase<
Rcpp::traits::r_sexptype_traits<
typename ::Rcpp::traits::result_of<Function>::type
>::rtype ,
true ,
- Sapply<RTYPE,NA,T,Function,false>
+ Sapply<RTYPE,NA,T,Function,true>
> {
public:
typedef typename ::Rcpp::traits::result_of<Function>::type result_type ;
More information about the Rcpp-commits
mailing list