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

Go to the source code of this file.

Macros

#define LOOPMACRO_C(name)
 
#define LOOPMACRO_CPP(name)   RcppExport LOOPMACRO_C(name)
 

Macro Definition Documentation

◆ LOOPMACRO_C

#define LOOPMACRO_C (   name)
Value:
SEXP name##__loop(SEXP n_, SEXP a, SEXP b){ \
int n = INTEGER(n_)[0] ; \
SEXP res = R_NilValue ; \
for( int i=0; i<n; i++){ \
res = name( a, b ) ; \
} \
return res ; \
}
Examples
ConvolveBenchmarks/convolve2_c.c, and ConvolveBenchmarks/convolve7_c.c.

Definition at line 3 of file loopmacro.h.

◆ LOOPMACRO_CPP

#define LOOPMACRO_CPP (   name)    RcppExport LOOPMACRO_C(name)