22 #ifndef Rcpp__sugar__which_min_h
23 #define Rcpp__sugar__which_min_h
28 template <
int RTYPE,
bool NA,
typename T>
35 R_xlen_t
get()
const {
39 if( Rcpp::traits::is_na<RTYPE>(current) )
return NA_INTEGER ;
41 for( R_xlen_t i=1; i<n; i++){
43 if( Rcpp::traits::is_na<RTYPE>(current) )
return NA_INTEGER ;
57 template <
int RTYPE,
typename T>
64 R_xlen_t
get()
const {
69 for( R_xlen_t i=1; i<n; i++){
89 template <
int RTYPE,
bool NA,
typename T>
Rcpp::VectorBase< RTYPE, false, T > VEC_TYPE
Rcpp::traits::storage_type< RTYPE >::type STORAGE
WhichMin(const VEC_TYPE &obj_)
Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
Rcpp::traits::storage_type< RTYPE >::type STORAGE
WhichMin(const VEC_TYPE &obj_)
R_xlen_t which_min(const VectorBase< RTYPE, NA, T > &t)
sugar::Min< RTYPE, NA, T > min(const VectorBase< RTYPE, NA, T > &x)