Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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

namespace  Rcpp
 Rcpp API.
namespace  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

Definition at line 100 of file SugarMath.h.