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

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.

◆ LOOPMACRO_CPP

#define LOOPMACRO_CPP ( name)
Value:
#define RcppExport
Definition RcppCommon.h:140
#define LOOPMACRO_C(name)
Definition loopmacro.h:2
Examples
ConvolveBenchmarks/convolve3_cpp.cpp, and ConvolveBenchmarks/convolve4_cpp.cpp.

Definition at line 12 of file loopmacro.h.