22#ifndef Rcpp__sugar__which_max_h
23#define Rcpp__sugar__which_max_h
28template <
int RTYPE,
bool NA,
typename T>
35 R_xlen_t
get()
const {
40 R_xlen_t n =
obj.size() ;
41 for( R_xlen_t i=1; i<n; i++){
57template <
int RTYPE,
typename T>
64 R_xlen_t
get()
const {
68 R_xlen_t n =
obj.size() ;
69 for( R_xlen_t i=1; i<n; i++){
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
bool is_na(typename storage_type< RTYPE >::type)
sugar::Min< RTYPE, NA, T > min(const VectorBase< RTYPE, NA, T > &x)
R_xlen_t which_max(const VectorBase< RTYPE, NA, T > &t)