Suppose that I have the following array of vectors.

```
temp = Matrix{Vector{Float64}}(undef, 3, 1000)
for i = 1:3
for j = 1:1000
temp[i,j] = rand(10)
end
end
```

Now I want to compute the correlation between the first element in the inner-vector and the second element in the inner-vector, separately for each row dimension of the outer-matrix. I was trying to do something like this:

```
cor(temp[1,:][1,:], temp[1,:][2,:])
```

But `temp[1,:][1,:]`

only gives me the first vector , rather then collecting horizontally the first elements in all vectors in the first row of the outer-matrix.