10 int i, j, na, nb, nab;
13 PROTECT(a = AS_NUMERIC(a));
14 PROTECT(b = AS_NUMERIC(b));
15 na = LENGTH(a); nb = LENGTH(b); nab = na + nb - 1;
16 PROTECT(ab = NEW_NUMERIC(nab));
17 for(i = 0; i < nab; i++) REAL(ab)[i] = 0.0;
18 for(i = 0; i < na; i++)
19 for(j = 0; j < nb; j++) REAL(ab)[i + j] += REAL(a)[i] * REAL(b)[j];
SEXP convolve7(SEXP a, SEXP b)
#define LOOPMACRO_C(name)