|
Rcpp Version 1.1.2
|

Go to the source code of this file.
Namespaces | |
| namespace | Rcpp |
| Rcpp API. | |
| namespace | Rcpp::sugar |
| namespace | Rcpp::sugar::detail |
Macros | |
| #define | safe_math__has_builtin(x) |
| #define | RCPP_SAFE_ADD(a, b) |
| #define | RCPP_SAFE_SUB(a, b) |
| #define | RCPP_SAFE_MUL(a, b) |
Functions | |
| void | Rcpp::sugar::detail::stop_overflow (const char *caller) |
| template<typename T> | |
| std::enable_if< std::is_integral< T >::value, T >::type | Rcpp::sugar::detail::safe_add (T a, T b, const char *caller=nullptr) |
| template<typename T> | |
| std::enable_if<!std::is_integral< T >::value, T >::type | Rcpp::sugar::detail::safe_add (T a, T b, const char *caller=nullptr) |
| template<typename T> | |
| std::enable_if< std::is_integral< T >::value, T >::type | Rcpp::sugar::detail::safe_sub (T a, T b, const char *caller=nullptr) |
| template<typename T> | |
| std::enable_if<!std::is_integral< T >::value, T >::type | Rcpp::sugar::detail::safe_sub (T a, T b, const char *caller=nullptr) |
| template<typename T> | |
| std::enable_if< std::is_integral< T >::value, T >::type | Rcpp::sugar::detail::safe_mul (T a, T b, const char *caller=nullptr) |
| template<typename T> | |
| std::enable_if<!std::is_integral< T >::value, T >::type | Rcpp::sugar::detail::safe_mul (T a, T b, const char *caller=nullptr) |
| #define RCPP_SAFE_ADD | ( | a, | |
| b ) |
Definition at line 33 of file safe_math.h.
Referenced by Rcpp::sugar::Cumsum< RTYPE, NA, T >::get(), Rcpp::sugar::Sum< RTYPE, NA, T >::get(), Rcpp::sugar::Sum< RTYPE, false, T >::get(), Rcpp::sugar::detail::incr(), Rcpp::sugar::Plus_Vector_Primitive< RTYPE, NA, T >::operator[](), and Rcpp::sugar::Plus_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::operator[]().
| #define RCPP_SAFE_MUL | ( | a, | |
| b ) |
Definition at line 35 of file safe_math.h.
Referenced by Rcpp::sugar::Cumprod< RTYPE, NA, T >::get(), Rcpp::sugar::Times_Vector_Primitive< RTYPE, NA, T >::operator[](), and Rcpp::sugar::Times_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::operator[]().
| #define RCPP_SAFE_SUB | ( | a, | |
| b ) |
Definition at line 34 of file safe_math.h.
Referenced by Rcpp::sugar::Diff< RTYPE, LHS_NA, LHS_T >::operator[](), Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >::operator[](), Rcpp::sugar::Diff< RTYPE, false, LHS_T >::operator[](), Rcpp::sugar::Minus_Primitive_Vector< RTYPE, NA, T >::operator[](), Rcpp::sugar::Minus_Vector_Primitive< RTYPE, NA, T >::operator[](), and Rcpp::sugar::Minus_Vector_Vector< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T >::operator[]().
| #define safe_math__has_builtin | ( | x | ) |
Definition at line 29 of file safe_math.h.