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