I have an n-dimensional array of length 2 vectors.
...
vector[2] w[n];
...
Are the following equivalent, if I would like to perform the calculation $w_1 + w_2$
...
for(i in 1:n){
Mu[i] = w[i][1] + w[i][2];
}
...
and
...
for(i in 1:n){
Mu[i] = w[i,1] + w[i,2];
}
...