Skip to content
Prev 9478 / 10988 Next

[Rcpp-devel] a variable for loop

Hi Amina,

Looks like you want us to do your homework, right? ;)

Pay attention to subscript translation from R to C:

c[i-1, j, k-1] * b[i, j]
vs
c(i-1, j, k) *b(i, j)

Can you see the difference?

Best,
Serguei.

Le 14/12/2016 ? 07:46, Amina Shahzadi a ?crit :