Rcpp Version 1.0.9
Vectorized_Math.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::Vectorized< Func, NA, VEC >
 
class  Rcpp::sugar::Vectorized_INTSXP< Func, NA, VEC >
 
class  Rcpp::sugar::Vectorized_INTSXP< Func, false, VEC >
 

Namespaces

 Rcpp
 Rcpp API.
 
 Rcpp::sugar
 

Macros

#define VECTORIZED_MATH_1(__NAME__, __SYMBOL__)
 

Typedefs

typedef double(* Rcpp::sugar::DDFun) (double)
 

Macro Definition Documentation

◆ VECTORIZED_MATH_1

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

Definition at line 83 of file Vectorized_Math.h.