Rcpp Version 1.0.9
SugarMath.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, U1, T1, FunPtr >
 
class  Rcpp::sugar::SugarMath_1< NA, RESULT_TYPE, int, T1, FunPtr >
 
class  Rcpp::sugar::SugarMath_1< false, RESULT_TYPE, int, T1, FunPtr >
 

Namespaces

 Rcpp
 Rcpp API.
 
 Rcpp::sugar
 

Macros

#define SUGAR_MATH_1(__NAME__, __SYMBOL__)
 

Macro Definition Documentation

◆ SUGAR_MATH_1

#define SUGAR_MATH_1 (   __NAME__,
  __SYMBOL__ 
)
Value:
namespace Rcpp{ \
template <bool NA, typename T> \
inline sugar::SugarMath_1<NA,double,double,T, double (*)(double) > \
__NAME__( \
const VectorBase<REALSXP,NA,T>& t \
){ \
return sugar::SugarMath_1<NA,double,double,T, double (*)(double)>( \
&__SYMBOL__ , t \
) ; \
} \
inline sugar::SugarMath_1<true,double,double,NumericVector,double(*)(double)> \
__NAME__( SEXP x){ return __NAME__( NumericVector( x ) ) ; } \
template <bool NA, typename T> \
inline sugar::SugarMath_1<NA,double,int,T, double (*)(double) > \
__NAME__( \
const VectorBase<INTSXP,NA,T>& t \
){ \
return sugar::SugarMath_1<NA,double,int,T, double (*)(double)>( \
&__SYMBOL__ , t \
) ; \
} \
}
Rcpp API.
Definition: algo.h:28
Vector< REALSXP > NumericVector
Definition: instantiation.h:30
static Na_Proxy NA
Definition: Na_Proxy.h:52

Definition at line 100 of file SugarMath.h.