10 if (x == 1)
return(1);
20 int nab = na + nb - 1;
23 for (
int i = 0; i < na; i++)
24 for (
int j = 0; j < nb; j++)
25 xab[i + j] += a[i] * b[j];
36 std::transform(input.
begin(), input.
end(), output.
begin(), f);
NumericVector convolve(NumericVector a, NumericVector b)
int fibonacci(const int x)
List lapplyCpp(List input, Function f)
Function_Impl< PreserveStorage > Function