Rcpp Version 0.12.14
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 2 of file loopmacro.h.

Referenced by convolve2(), and convolve7().

◆ LOOPMACRO_CPP