22#ifndef Rcpp__sugar__which_max_h
23#define Rcpp__sugar__which_max_h
28template <
int RTYPE,
bool NA,
typename T>
39 if( Rcpp::traits::is_na<RTYPE>(current) )
return NA_INTEGER ;
43 if( Rcpp::traits::is_na<RTYPE>(current) )
return NA_INTEGER ;
57template <
int RTYPE,
typename T>
89template <
int RTYPE,
bool NA,
typename T>
Rcpp::traits::storage_type< RTYPE >::type STORAGE
WhichMax(const VEC_TYPE &obj_)
Rcpp::VectorBase< RTYPE, false, T > VEC_TYPE
Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
WhichMax(const VEC_TYPE &obj_)
Rcpp::traits::storage_type< RTYPE >::type STORAGE
sugar::Min< RTYPE, NA, T > min(const VectorBase< RTYPE, NA, T > &x)
R_xlen_t which_max(const VectorBase< RTYPE, NA, T > &t)