An array of vectors

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];
      }
      ...
    }

Yep. You can find more details about indexing specifications in the relevant reference guide section.