Rcpp Version 0.12.12
Rcpp::algorithm Namespace Reference

Namespaces

 helpers
 

Functions

template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type sum (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type sum_nona (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type prod (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type prod_nona (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type max (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type max_nona (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type min (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type min_nona (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value &&traits::same_type< typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type, double >::value, double >::type mean (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value &&traits::same_type< typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type, int >::value, double >::type mean (InputIterator begin, InputIterator end)
 
template<typename InputIterator , typename OutputIterator >
void log (InputIterator begin, InputIterator end, OutputIterator out)
 
template<typename InputIterator , typename OutputIterator >
void exp (InputIterator begin, InputIterator end, OutputIterator out)
 
template<typename InputIterator , typename OutputIterator >
void sqrt (InputIterator begin, InputIterator end, OutputIterator out)
 

Function Documentation

template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type Rcpp::algorithm::max ( InputIterator  begin,
InputIterator  end 
)
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type Rcpp::algorithm::max_nona ( InputIterator  begin,
InputIterator  end 
)

Definition at line 349 of file algorithm.h.

References max(), Rcpp::algorithm::helpers::rtype< T >::ONE(), and Rcpp::algorithm::helpers::ctype_helper< I >::value.

Here is the call graph for this function:

template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value && traits::same_type< typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type, double >::value, double >::type Rcpp::algorithm::mean ( InputIterator  begin,
InputIterator  end 
)

Definition at line 417 of file algorithm.h.

References Rcpp::algorithm::helpers::rtype< T >::NA(), and Rcpp::algorithm::helpers::ctype_helper< I >::value.

Here is the call graph for this function:

template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value && traits::same_type< typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type, int >::value, double >::type Rcpp::algorithm::mean ( InputIterator  begin,
InputIterator  end 
)

Definition at line 444 of file algorithm.h.

References Rcpp::algorithm::helpers::rtype< T >::NA().

Here is the call graph for this function:

template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type Rcpp::algorithm::min ( InputIterator  begin,
InputIterator  end 
)
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type Rcpp::algorithm::min_nona ( InputIterator  begin,
InputIterator  end 
)

Definition at line 395 of file algorithm.h.

References min(), and Rcpp::algorithm::helpers::ctype_helper< I >::value.

Here is the call graph for this function:

template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type Rcpp::algorithm::prod ( InputIterator  begin,
InputIterator  end 
)
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type Rcpp::algorithm::prod_nona ( InputIterator  begin,
InputIterator  end 
)

Definition at line 303 of file algorithm.h.

References Rcpp::algorithm::helpers::rtype< T >::ONE(), and Rcpp::algorithm::helpers::ctype_helper< I >::value.

Here is the call graph for this function:

template<typename InputIterator , typename OutputIterator >
void Rcpp::algorithm::sqrt ( InputIterator  begin,
InputIterator  end,
OutputIterator  out 
)
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type Rcpp::algorithm::sum ( InputIterator  begin,
InputIterator  end 
)
template<typename InputIterator >
traits::enable_if< helpers::decays_to_ctype< typename std::iterator_traits< InputIterator >::value_type >::value, typename helpers::ctype< typename std::iterator_traits< InputIterator >::value_type >::type >::type Rcpp::algorithm::sum_nona ( InputIterator  begin,
InputIterator  end 
)

Definition at line 257 of file algorithm.h.

References Rcpp::algorithm::helpers::ctype_helper< I >::value, and Rcpp::algorithm::helpers::rtype< T >::ZERO().

Here is the call graph for this function: