I have an array of two vectors and I want to compute the correlation of the components. Currently, I am computing this as

```
mean([X[j]*X[j]' for j=1:n_batch_iters])
```

which gives the desired result, but I was curious if this is the most efficient approach.