22#ifndef Rcpp__sugar__sum_h
23#define Rcpp__sugar__sum_h
28template <
int RTYPE,
bool NA,
typename T>
29class Sum :
public Lazy< typename Rcpp::traits::storage_type<RTYPE>::type , Sum<RTYPE,NA,T> > {
43 if( Rcpp::traits::is_na<RTYPE>(current) )
44 return Rcpp::traits::get_na<RTYPE>() ;
53template <
bool NA,
typename T>
74template <
int RTYPE,
typename T>
75class Sum<RTYPE,
false,T> :
public Lazy< typename Rcpp::traits::storage_type<RTYPE>::type , Sum<RTYPE,false,T> > {
97template <
bool NA,
typename T>
102template <
bool NA,
typename T>
107template <
bool NA,
typename T>
Rcpp::VectorBase< REALSXP, NA, T > VEC_TYPE
Rcpp::traits::Extractor< REALSXP, NA, T >::type VEC_EXT
Sum(const VEC_TYPE &object_)
Rcpp::traits::storage_type< RTYPE >::type STORAGE
Rcpp::VectorBase< RTYPE, false, T > VEC_TYPE
Sum(const VEC_TYPE &object_)
Rcpp::traits::Extractor< RTYPE, false, T >::type VEC_EXT
Rcpp::traits::Extractor< RTYPE, NA, T >::type VEC_EXT
Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
Rcpp::traits::storage_type< RTYPE >::type STORAGE
Sum(const VEC_TYPE &object_)
sugar::Sum< INTSXP, NA, T > sum(const VectorBase< INTSXP, NA, T > &t)