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

Go to the source code of this file.

Defines

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

Define Documentation

#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.

#define LOOPMACRO_CPP (   name)    RcppExport LOOPMACRO_C(name)
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines